PHP 8.2 security fixes end 31 Dec 2026 PHP 8.2 fixes end 31 Dec 2026 30 days left Update for $349

Guide · 6 min read

How to hide prices in WooCommerce (and show the right button)

Show prices only to trade accounts, some roles or some countries, replace them with a clear next step, and close every place a hidden price can leak.

Updated 21 Nov 2026 · By the WPKoders development team

Showing prices to everyone isn’t always right. Wholesalers don’t want retail shoppers seeing trade prices, distributors may be bound by agreements, and some products are always quoted. WooCommerce has no setting to hide prices, so here is how to do it properly: who sees what, what replaces the price, and the leaks to close.

Decide who sees prices

Write the rule as one sentence before you configure anything. The common ones:

  • Guests don’t see prices; signed-in customers do. The classic trade-only catalog.
  • Only approved roles see prices (wholesale, distributor); everyone else asks.
  • Some countries don’t see prices because you don’t ship or sell there directly.
  • Some products never show a price because every order is quoted.

Choose what replaces the price

A blank space loses buyers. Replace the price with a short reason and a next step: “Log in to see trade prices” with a sign-in link, “Request a quote” with a quote button, or “Apply for a trade account” with your application form. Hide the Add to cart button at the same time, or buyers can still order at the hidden price.

WooCommerce hide price: logged-in customers see $89.00 while guests see the price hidden
WooCommerce hide price: logged-in customers see $89.00 while guests see the price hidden

Close the places prices leak

Hiding the price on the product page is the easy part. Check every other place WooCommerce shows it:

  • Shop and category pages, related products and upsells.
  • Variable products: the price range and each variation’s price.
  • The cart, mini-cart and checkout (a guest shouldn’t be able to get there with a hidden product).
  • Product feeds for Google and social channels, which often read the raw price.
  • Structured data (schema) in the page source, which search engines show in results.
  • The WooCommerce Store API and REST API, used by block themes and apps.

Make trade sign-up painless

If prices are behind a login, the login is now your conversion step. Keep the trade application short (name, company, VAT or tax number, what they buy), say how quickly you approve, and email the buyer the moment they’re approved with a link straight back to the catalog.

Product with the price shown to logged-in customers, hidden for guests and a quote button instead
Product with the price shown to logged-in customers, hidden for guests and a quote button instead

Keep search engines in mind

Pages without a visible price can still rank. Write product descriptions that answer what trade buyers search for (pack sizes, specifications, minimum order), and make sure the hidden price isn’t in your schema, or Google may show a price your guests can’t see.

What to test before you launch

  • Browse as a guest: no price anywhere, including variations and the page source.
  • Sign in as each role that should see prices and check they appear everywhere.
  • Try to add a hidden product to the cart through a direct “?add-to-cart=” link.
  • Check your product feed and a product page’s structured data.
  • Test with your caching plugin on: cached pages must not show one buyer’s prices to another.

Do it with Hide Price & Show Custom Button

Hide prices or Add to cart for guests, roles or countries, and show your own button.

Buy now, $49 a year See the plugin