Hide Price and Add to Cart Button is the small-but-mighty plugin that lets WooCommerce stores selectively hide prices and the add-to-cart button per product, category or user role — and replace them with a Login to view price, Contact for pricing or custom call-to-action button instead.
I built this as a focused single-purpose plugin in the Addify catalogue for stores that need conditional pricing visibility without buying into a full B2B suite. The 4.8-star marketplace rating makes it one of the most reliable hide-price plugins available for WooCommerce.
The problem it solves
Plenty of stores cannot show pricing to everyone — trade-only suppliers, regulated industries, MSRP-bound resellers, gated wholesale catalogs. WooCommerce assumes pricing is public, and bending it otherwise normally means custom code or buying a full B2B suite to get one tiny feature.
The plugin gives merchants a focused settings UI to control pricing visibility per product, category or role, with a sensible call-to-action filling the space where the price used to live.
What the plugin does
A focused visibility layer over WooCommerce prices and purchase buttons:
- Hide price per product — toggle pricing visibility on individual products
- Hide price per category — apply visibility rules to entire categories
- Hide price per user role — show prices to wholesale roles, hide for guests
- Custom replacement button — swap add-to-cart for Login to View, Contact Us, Request a Quote
- Custom replacement text — message shown where the price used to be
- Per-variation control — hide pricing for specific variations of variable products
- Catalog and single-product consistency — visibility is identical across shop, archive and product pages
- Guest vs logged-in distinction — force registration before pricing is exposed
How it is built
The plugin hooks into woocommerce_get_price_html and the loop add-to-cart actions to suppress the relevant output, then re-injects the configured replacement HTML in the same template slot. Per-product visibility is stored as product meta, per-category as term meta, and per-role as a global option — so lookups stay cheap. The logic respects the WooCommerce visibility settings so search engines and feeds behave consistently.
The plugin is HPOS-compatible, fully translatable, and uses capability checks so admins always see the real pricing in the back-office regardless of front-end visibility rules.
Marketplace adoption
A 4.8-star rating across 41 reviews on the official WooCommerce Marketplace makes this one of the highest-rated focused B2B plugins in the Addify catalogue. The simplicity is the feature — merchants get exactly the visibility control they need without inheriting a full B2B platform.
- Marketplace rating: 4.8 stars — based on 41 customer reviews on the official WooCommerce Marketplace
- Long-running on the marketplace — multi-year tenure with continuous updates
- Active B2B and trade customer base — used by wholesale, gated and regulated stores
- Focused-tool simplicity wins — merchants pick it when they need only price-visibility control, not a full suite
- Composes cleanly with other Addify plugins — works alongside Role Pricing and Quote workflows
Need a custom WooCommerce plugin built like this?
I build production-grade WooCommerce plugins like the ones I shipped on the official WooCommerce Marketplace — focused tools that solve one problem well instead of bloated suites. If you need conditional catalog or pricing visibility inside WooCommerce, let’s talk.
See my WooCommerce plugin development service