Linux 软件免费装
Banner图

Hide Price and Add to Cart for WooCommerce

开发者 woomanagers
更新时间 2026年4月24日 18:23
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2
版权网址: 版权信息

标签

woocommerce b2b woocommerce catalog mode hide add to cart woocommerce hide price woocommerce role based pricing woocommerce

下载

详情介绍:

Hide Price and Add to Cart for WooCommerce gives store owners full rule-based control over pricing visibility and purchase options — no coding required. Create unlimited visibility rules and define exactly who sees prices and the Add to Cart button, and on which products. Each rule lets you target specific products, categories, tags, or brands, and apply it to specific user roles, individual users, or guest visitors. Whether you're running a wholesale store, a B2B shop, a members-only catalog, or a quote-based business — this plugin makes conditional pricing visibility simple and flexible. Why Use This Plugin? Many WooCommerce stores need to control who can see prices and buy products. Common scenarios include: Key Features Unlimited Hide Rules Create as many rules as your store needs. Each rule is managed independently, giving you granular control across your entire catalog. Hide Price with Custom Replacement Text Supports All WooCommerce Product Types Rules are applied correctly across simple products, variable products (including individual variations), grouped products, external/affiliate products, and WooCommerce Subscriptions. Precise Product Targeting Control which products each rule applies to: Developer-Friendly with Custom Hooks Extend and customize the plugin's behavior using built-in filters: Built to WordPress and WooCommerce Standards Perfect For Use Cases

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install it directly from the WordPress plugin directory.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Make sure WooCommerce is installed and active — this plugin requires it.
  4. Navigate to WooCommerce → Hide Price Rules in your admin menu.
  5. Click Add New Rule, give it a title, and configure your settings:
  6. Under Hide Price & Add to Cart: choose whether to hide the price, set replacement text, hide the Add to Cart button, and choose whether to replace it with text or a custom link button.
  7. Under Users & Roles: select individual users and/or user roles the rule applies to.
  8. Under Products & Taxonomies: select whether to apply to all products, or pick specific products, categories, tags, or brands.
  9. Publish the rule. It takes effect immediately on your storefront.

屏幕截图:

  • Hide Price & Add to Cart settings — configure price hiding and button replacement options per rule.
  • Users & Roles targeting — select which individual users or user roles the rule applies to.
  • Products & Taxonomies targeting — apply the rule to all products, or specific products, categories, tags, or brands.
  • Frontend example — price replaced with custom text on a product page.
  • Frontend example — Add to Cart button replaced with a custom link button.

升级注意事项:

1.0.1 Fixes a bug where prices were not correctly hidden for variable product variations. Update recommended for all users with variable products in their store.

常见问题:

Does this plugin work with variable products?

Yes. Rules are applied correctly to variable products. When a variation is displayed, the plugin looks up the parent product to check which rules apply, ensuring consistent behavior across all variations.

Can I create different rules for different user roles?

Yes. Each rule lets you target one or more user roles independently. For example, you can create one rule that hides prices for Guests, and a separate rule that hides the Add to Cart button for Customers but not Wholesalers.

Can I target individual user accounts, not just roles?

Yes. In addition to targeting roles, you can select specific registered users by name so a rule applies only to those accounts.

Can I hide prices on just specific products, not the whole store?

Yes. Each rule can be scoped to specific products, categories, tags, or brands — or set to apply to all products. You have full control.

Can I replace the Add to Cart button with a link to my WhatsApp or contact form?

Yes. Choose "Replace with custom link button", enter your button text, and paste any URL — including a WhatsApp chat link (https://wa.me/...), a contact page, a quote form, or any external URL.

Does it work on both the shop/category pages and single product pages?

Yes. Rules are enforced on both archive (shop, category, tag) pages and on single product pages.

Will hiding prices affect my SEO?

No. The plugin hides prices at the display level using WooCommerce's standard price filter. Product pages remain fully indexable by search engines.

Does this plugin require WooCommerce?

Yes. WooCommerce must be installed and activated. The plugin will automatically deactivate and show an admin notice if WooCommerce is not detected.

How many rules can I create?

Unlimited. There is no cap on the number of rules.

Is this plugin compatible with WooCommerce Subscriptions?

Yes. The Add to Cart replacement logic explicitly handles WooCommerce Subscription product types.

Can I use this on a WordPress Multisite?

The plugin is designed for standard WordPress installations. Multisite support has not been officially tested.

更新日志:

1.0.1 1.0.0