Hide Price and Add to Cart for WooCommerce
Hide Price and Add to Cart for WooCommerce
Description
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:
- Hide prices from guest users until they register or log in
- Show pricing only to approved wholesale or B2B customers
- Replace “Add to Cart” with a “Request a Quote” or “Contact Us” button
- Convert your WooCommerce store into a browse-only product catalog
- Restrict purchasing for specific products or entire categories by user role
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
* Completely hide the product price
* Replace it with any custom text — e.g., “Login to See Price”, “Call for Price”, “Request a Quote”, or “Members Only”
* Leave the price area blank if preferred
Hide Add to Cart Button — Two Replacement Options
* Remove the Add to Cart button entirely
* Replace it with plain custom text (e.g., “Contact Us for Pricing”)
* Replace it with a styled custom link button pointing to any URL — your contact page, a quote form, a WhatsApp chat link, an email address, or any external page
Works on Shop Pages AND Single Product Pages
Rules apply both on archive/shop listing pages and on individual product pages, so your store looks consistent everywhere.
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:
* Apply to all products in your store with one click
* Target specific individual products
* Target entire product categories
* Target products by tag
* Target products by brand (compatible with brand taxonomy plugins)
Flexible User & Role Targeting
Control which visitors each rule applies to:
* Target specific individual user accounts by name
* Target any WordPress or WooCommerce user role — including Guests, Customers, Subscribers, Wholesalers, or any custom role
* If no user or role is specified, the rule applies to everyone
Results Cached for Performance
Rules are cached using WordPress object cache, so your store runs fast even with many rules active.
Developer-Friendly with Custom Hooks
Extend and customize the plugin’s behavior using built-in filters:
* woomanagers_replace_price_text — Filter the replacement text shown instead of the price
* woomanagers_replace_add_to_cart_text — Filter the replacement text shown instead of the Add to Cart button
* wmhp_hide_price_register_post_type — Customize the Hide Price Rules post type registration
Translation Ready
Fully internationalized with a .pot file included. Ready for translation into any language.
Built to WordPress and WooCommerce Standards
* Follows official WordPress coding standards
* Nonce verification and data sanitization on all inputs
* Integrates natively into the WooCommerce admin menu
* No bloat — only loads what it needs
Perfect For
- Wholesale WooCommerce Stores — Show prices only to approved wholesale accounts
- B2B eCommerce Websites — Gate pricing behind login for business customers
- Catalog Mode Shops — Let visitors browse products without seeing prices or buying
- Membership-Based Stores — Restrict pricing visibility to paid members
- Quote-Based Businesses — Replace Add to Cart with a quote request button
- Manufacturer & Distributor Sites — Display your product range without enabling direct purchases
- Private or Invite-Only Stores — Restrict all purchasing to specific registered users
Use Cases
- Hide all prices for guest (non-logged-in) visitors
- Show prices only to users with the “Wholesaler” role
- Replace “Add to Cart” with a WhatsApp button for a specific product category
- Hide pricing on a specific brand’s products for retail customers
- Create a catalog-only experience for trade show or brochure-style stores
- Allow browsing but require login before any purchase can be made
Free and Pro
Everything described above is included in this free plugin, with no rule limits, no time limits and no locked settings.
For stores that need more, Hide Price & Add to Cart for WooCommerce — Pro is available from WooManagers. It adds:
- Geolocation targeting — show or hide prices by country, state, city or ZIP code
- Inline enquiry forms — replace the Add to Cart button with a Contact Form 7, WPForms or Gravity Forms form
- Variable product selectors on shop and archive pages
- A global performance settings panel
The free plugin works on its own and does not require the Pro version.
Part of the WMGRs B2B range
Hide Price and Add to Cart is part of the free WMGRs range of B2B and wholesale tools for WooCommerce. Each plugin works on its own and they work well together:
- WMGRs Role Based Pricing for WooCommerce — wholesale and trade prices per user role.
- WMGRs Tiered Pricing for WooCommerce — quantity-based bulk discounts.
- WMGRs Catalog Access Rules for WooCommerce — hide products or categories from guests or selected roles.
- WMGRs Minimum Order Quantity & Amount for WooCommerce — minimum quantities, pack sizes and a minimum order amount.
- WMGRs Request a Quote for WooCommerce — let customers request a quote instead of checking out.
- WMGRs Tax and VAT Exempt for WooCommerce — VAT number field and tax-exempt customers.
- WMGRs Registration Form & Account Approval for WooCommerce — custom registration fields and manual approval of new customer accounts.
Documentation and support
Documentation, setup guides and the full WooManagers extension catalog are on woomanagers.com. For questions about this plugin, visit the plugin page or use the wordpress.org support forum.
Installation
- Upload the plugin folder to
/wp-content/plugins/, or install it directly from the WordPress plugin directory. - Activate the plugin through the Plugins screen in WordPress.
- Make sure WooCommerce is installed and active — this plugin requires it.
- Navigate to WooCommerce Hide Price Rules in your admin menu.
- Click Add New Rule, give it a title, and configure your settings:
- 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.
- Under Users & Roles: select individual users and/or user roles the rule applies to.
- Under Products & Taxonomies: select whether to apply to all products, or pick specific products, categories, tags, or brands.
- Publish the rule. It takes effect immediately on your storefront.
Screenshots

Rule list — manage all your hide price rules from the WooCommerce admin menu.

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.

Button Styling options — add custom CSS classes, remove the default button style, and set colors, dimensions, spacing, and custom CSS for the custom link button.
Faq
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.
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.
Yes. In addition to targeting roles, you can select specific registered users by name so a rule applies only to those accounts.
Yes. Each rule can be scoped to specific products, categories, tags, or brands — or set to apply to all products. You have full control.
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.
Yes. Rules are enforced on both archive (shop, category, tag) pages and on single product pages.
No. The plugin hides prices at the display level using WooCommerce’s standard price filter. Product pages remain fully indexable by search engines.
Yes. WooCommerce must be installed and activated. The plugin will automatically deactivate and show an admin notice if WooCommerce is not detected.
Unlimited. There is no cap on the number of rules.
Yes. The Add to Cart replacement logic explicitly handles WooCommerce Subscription product types.
Yes. Hide Price & Add to Cart for WooCommerce — Pro adds geolocation targeting (country, state, city, ZIP code), inline enquiry forms (Contact Form 7, WPForms, Gravity Forms), variable product selectors on archive pages and a global performance settings panel. Every feature listed on this page is included in the free plugin.
Setup guides and documentation are on the plugin page at woomanagers.com. For help, open a topic in the wordpress.org support forum for this plugin.
The plugin is designed for standard WordPress installations. Multisite support has not been officially tested.
Reviews
Works perfectly, nice and lightweight
By Warren (rabbitwordpress) on October 7, 2026
Super quick and easy to install and configure, hides all prices and "add to cart" and allows adding a short message "Call for prices" or whatever you want to say.
Highly Recommended
By arbaz22 on June 25, 2026
This is one of the best and simplest plugins, if you just want to hide youre entire store price with one click this is the one. Appreciate the plugin owner who created this.
A very useful plugin to turn your store into a online cataglog
By Raja Aman Ullah (rajaamanullah) on August 24, 2026
You can hide prices or remove/replace the "add to cart" button, and turn your store into an online catalog using this plugin. It's got lots of options for configuring the rules, so you can be super flexible.
Changelog
1.0.4
- Compatibility: Tested with WooCommerce 11.1.
- Readme: Added documentation and support links, a Free and Pro comparison and the WMGRs B2B range.
1.0.3
- Fix: Brand targeting and tag targeting now save every selected term (the tag and brand fields only kept the last selection).
- Fix: Theme template overrides in
yourtheme/woocommerce/wm-hide-price/are now found. - Fix: Rule lists are filtered on every call so add-ons see a consistent set of rules within a request; caches are flushed when a rule is trashed, restored or deleted.
- Fix: Prices and buttons are no longer replaced in WooCommerce REST API (wc/v3) responses used by back-office integrations. Storefront and Store API behaviour is unchanged.
- Fix: Bundled translations now load (the language path was incorrect) and the text domain matches the plugin slug so WordPress.org language packs can be delivered.
- Fix: Duplicate element IDs and doubled
checkedattributes in the rule editor. - Tweak: Inputs are sanitised per field type; the custom link URL is validated as a URL.
- Tweak: Admin assets load only on the Hide Price Rule screens.
- Tweak: Requires PHP 7.4+ and WordPress 6.2+; declares compatibility with WooCommerce High-Performance Order Storage and block-based Cart & Checkout.
- Dev: New
wmhp_should_apply_rulesfilter andwmhp_after_single_add_to_cart_replacementaction.
1.0.2
- New: Button styling options for the custom link button — add your own CSS classes, optionally remove the default button class, and set background color, text color, width, height, padding, margin, border radius and font size.
- New: Additional CSS field for applying extra style declarations to the custom link button.
- New:
woomanagers_custom_button_attsfilter to modify the button class and style attributes programmatically. - New: Bundled translations for German, French, Spanish, Italian, Portuguese (Brazil), Dutch, Russian, Japanese and Polish.
- Tweak: Regenerated the translation template (.pot) and corrected outdated plugin name and description strings.
- Tweak: Updated the plugin version constant used for asset cache busting.
- Compatibility: Tested up to WordPress 7.1.
1.0.1
- Fix: Corrected price hiding for variable product variations.
1.0.0
- Initial release.