Fizz Hide Price

Fizz Hide Price / Guides

How do I keep wholesale prices private on Shopify?

Last updated · Ode Labs

Don't put the wholesale price on the product at all. Keep it in a Shopify B2B catalog, which only logged-in B2B customers can see, or make a trade-only store private with a password. Hiding a price on screen with theme code or an app doesn't make it private, because the browser still receives it in the page, in the product's JSON and in the structured data search engines read.

Why isn't a hidden price private?

Because the browser, and anyone who looks, still receives it.

When a theme or app "hides" a price, it usually covers it after the page has loaded. The number can still be in:

  • The page's HTML, hidden with CSS or replaced by a message.
  • The product's JSON: every Shopify store serves /products/<handle>.js, whose response includes the price (Ajax Product API).
  • Structured data for search engines. A merchant on the Shopify Community found wholesale prices in search results. The reply: "Search engines will be pulling the price from the schema.org structured data in the code of the product pages", and "The results will still be visible in search engines until the pages are re-crawled."

So if the price on your product is the wholesale price, it isn't private, whatever the page shows. The fix is to make sure the product's public price isn't the trade one.

How do B2B catalogs keep trade prices private?

They hold the wholesale price separately and show it only to logged-in B2B customers.

A blended store sells to retail and trade from one storefront. With Shopify B2B:

  • Your products keep their regular price.
  • Wholesale prices live in catalogs. Shopify's catalogs guide: "You can include or exclude products, apply percentage price adjustments, and set fixed prices", plus quantity rules and volume pricing.
  • Shopify's blended and dedicated stores guide: "Only logged-in B2B customers can view B2B prices, products, and account information."

This is Shopify's own way to keep trade prices away from the public while still selling retail. Check the result yourself with the steps at the end of this guide.

How do I set it up?

Create companies, add their buyers, then create and assign a catalog.

  1. Customers > Companies: create a company for each trade customer, with a location for each ship-to address.
  2. Add the buyer's people as customers of the company.
  3. Create a catalog with their prices and assign it.

B2B is on the Basic, Grow, Advanced and Plus plans, not on Starter or Retail. On Basic, Grow and Advanced, catalogs reach company locations through B2B markets, with up to 3 active catalog assignments; assigning a catalog directly to a company location is Plus only (B2B plan features).

How do I make a trade-only store private?

Turn on private mode with a password, and optionally restrict it to B2B customers.

Shopify's Restrict access to your online store guide:

  1. In Shopify admin, go to Online Store > Preferences.
  2. Under Store access, turn on Private mode.
  3. Enter a Password (not your admin password) and, if you like, a Message to your visitors.
  4. Optionally tick Restrict access to B2B customers only.
  5. Click Save.

In private mode "all of your online store's pages are hidden from visitors and search engines". For a dedicated B2B store, Shopify adds that "You can gate your online store so that the URL and login page is only accessible to B2B customers." It's the strongest option, and it only suits stores with no retail shoppers: a blended store can't be gated this way, "because your D2C customers couldn't place orders".

What if my trade customers are just tagged accounts?

Then hide the price on screen and block the purchase at checkout, and accept that the price stays in the page.

Plenty of stores haven't moved to B2B companies: trade customers are ordinary accounts with a tag like wholesale, and the product price is the one they pay. In that case:

  • Hide prices and buy buttons for guests and untagged customers, with theme code ({% if customer and customer.tags contains 'wholesale' %}) or an app. See how to hide prices until customers log in.
  • Add a checkout check, so only allowed customers can buy those products. Apps can add a cart and checkout validation Function; Shopify's docs say "Validation errors that your function returns always block checkout."
  • Know the limit: the price is still in the page code and the product's JSON, and may appear in search results. If that matters, move to catalogs or a private store.

Where does Fizz Hide Price fit?

In that last setup: it hides the price and stops the sale, and it doesn't make the price private.

Fizz Hide Price hides prices and buy buttons for the products and customers you choose, shows a "Log in to see prices" link or a "Request a quote" form instead, and blocks the purchase at checkout with a validation Function, including through a direct cart link. The price is still in the page source and in /products/<handle>.js, and the app doesn't change your structured data. Use it to stop the sale and discourage casual browsing; use catalogs or a private store when the number itself must stay secret. It's free to install while it launches.

Which setup should I choose?

Match it to who you sell to and how secret the price must be.

Your situation Use
Retail and trade in one store, trade price must stay privateB2B catalogs
Trade onlyPrivate mode, restricted to B2B customers
Trade customers are tagged accounts; guests mustn't buy or see prices on screenHidden prices plus a checkout block
Prices on request for everyoneA quote form instead of a price, plus a checkout block

How do I check nothing leaks?

Look at the store the way a stranger, a script and a search engine would.

  1. Open your store in a private window: a product page, a collection and search results.
  2. Open /products/<handle>.js for a trade product and see which price it returns.
  3. As a guest, add a trade product to the cart with a cart link (/cart/<variant-id>:1) and go to checkout.
  4. Log in as a trade customer and repeat.
  5. View the page source of a product page and search it for the trade price.
  6. A few weeks later, search for one of your products and see what price search engines show.