Linux 软件免费装
Banner图

Hide Price for WooCommerce - Login to See Price, Hide Add to Cart & Catalog Mode

开发者 devdiggers
更新时间 2026年10月28日 05:29
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

hide price hide add to cart catalog mode wholesale login to see price

下载

1.0.0

详情介绍:

Some stores should not show prices to everyone. A wholesaler only quotes trade customers. A members club keeps its prices for members. A manufacturer wants dealers to log in before they see a price list. And plenty of shops simply want visitors to create an account before they can buy. Hide Price for WooCommerce is a free WooCommerce hide price plugin that hides the price and the Add to Cart button from the visitors you choose, on your whole catalog or only on the products and categories you pick. In their place, visitors see your own message, such as "Login to view price", and a button that gives them a next step: a login popup that brings them straight back to the product, or a link to your contact or trade application page. A hidden price is also removed from the product's schema markup and from WooCommerce Store API responses used by block themes, and protected products cannot be added to the cart, so the price stays hidden everywhere the plugin hides it. Quick links How it works
  1. Choose who should not see prices: guests, any user role, or both.
  2. Choose where: all products, or selected products and categories.
  3. Write the message shown in place of the price and pick what the button does.
  4. A visitor in that audience sees your message and button instead of the price and Add to Cart.
  5. They log in through the popup and land back on the same product, now with the price.
What the free plugin does

安装:

Automatic installation
  1. In your WordPress admin, go to Plugins > Add New.
  2. Search for "DevDiggers Hide Price".
  3. Click Install Now, then Activate.
Manual installation
  1. Download the plugin zip file.
  2. Go to Plugins > Add New > Upload Plugin and choose the zip file.
  3. Click Install Now, then Activate.
After activating
  1. The setup wizard opens. Choose who should not see prices, where to hide them and what visitors see instead.
  2. Fine tune exclusions and protection under DevDiggers Plugins > Hide Price > Configuration.
  3. Open your shop in a private browser window to see it as a guest.
Requirements

屏幕截图:

  • A guest sees your message and a login button instead of the price and Add to Cart.
  • The login popup on the product page, which brings the visitor back to the same product.
  • The shop as a guest: protected products show your message, an excluded product keeps its price.
  • General settings: who does not see prices, what to hide and which products.
  • Exclusions and the protection options for schema markup, the Store API and direct purchases.
  • Display settings for the price message and the replacement button.
  • The Price visibility setting on the product edit screen.
  • The setup wizard.

升级注意事项:

1.0.0 First release. After activating, run the setup wizard to choose who does not see prices.

常见问题:

How do I hide prices from guests in WooCommerce?

Install the plugin and turn it on in the setup wizard. Guests is the default audience and All products the default scope, so every price is hidden from logged out visitors right away.

How do I show prices only to logged in customers?

Leave Hide Prices For set to Guests. Everyone who is logged in sees prices. To hide prices from some logged in customers too, add their user role.

Can I hide prices for a wholesale or members only catalog?

Yes. Add the roles that should not see prices, for example Customer, and keep your wholesale role out of the list. Those users see the price message, everyone else sees prices.

Can I hide only the Add to Cart button and keep the price?

Yes. Under Configuration > General, set What to Hide to "Add to cart button only".

Can I hide prices on some products only?

Yes. Set Hide Prices On to "Selected products and categories" and pick them. You can also set any product to always hide or always show its price from its edit screen.

Does it work with variable products?

Yes. Hide a whole variable product, or pick single variations. When only some variations are hidden, the price range shown for the product is rebuilt from the visible ones.

Can visitors still buy a protected product through a direct link?

No, as long as Block Purchases is on (it is by default). The product is marked as not purchasable on the server, so ?add-to-cart= links and the Cart block refuse it.

Will Google still show my hidden prices?

Not from your product pages. The price is removed from the schema markup. Search results already indexed may take a while to refresh.

Does it work with the WooCommerce blocks?

Yes. Prices are removed from the Store API responses that the product blocks use, and protected products cannot be added to the Cart block.

Does it work with block themes?

Yes. In block themes such as Twenty Twenty-Five, the Add to Cart form block is replaced by your button on protected products, just like the classic product page.

Can shop managers change the settings?

Yes. Anyone who can manage WooCommerce can open and save the plugin settings, so a Shop Manager does not need administrator access.

Does it work with page caching?

Logged in visitors usually bypass the page cache, so they always see the right prices. If your cache serves pages to logged in users, exclude product and shop pages for them.

What does the dashboard count?

Clicks on the button that replaces Add to Cart, per day and per product, plus how many products are protected. You can turn the click counter off under Configuration > General.

Does the plugin collect personal data?

No. The click counter stores a daily total and a total per product in your own database. It does not store IP addresses, user IDs or cookies.

Will my settings be kept if I upgrade to Pro?

Yes. Pro uses the same settings, and turns your protected products into its first rule automatically.

Can I translate the plugin?

Yes. It is translation ready, and the price text, button text and custom URL can be translated with WPML.

Where can I get help?

Open a topic in the support forum or read the documentation.

更新日志:

1.0.0