Guide · Fizz Hide Price
How to hide prices until customers log in on Shopify
Three ways to show prices only to logged-in or approved customers on Shopify, what each one really hides, and how to stop guests buying anyway.
Wholesale and trade stores often want guests to browse products but see prices only after they log in, or only once their account is approved. Shopify doesn't have a single "hide prices" switch, so there are several ways to do it. They differ in one important way: whether they only hide the price on screen, or also stop the purchase.
First, decide what you need
- "Guests shouldn't see prices on the page." A display change is enough.
- "Guests shouldn't be able to buy." You need a check in the cart and checkout, because a product can be added to a cart without visiting its page.
- "Nobody outside my customers should be able to find our prices at all." You need Shopify's B2B catalogs or a password-protected store. See our guide to keeping wholesale prices private.
Option 1: Theme code (free, display only)
The most common Shopify Community answer is to wrap the price and the buy button in a Liquid check for a logged-in customer. In the thread on hiding wholesale prices, the suggested code is:
{% if customer %}
...price and add to cart button...
{% endif %}
To show prices only to approved accounts, check a customer tag as well, for example {% if customer and customer.tags contains 'wholesale' %}.
You'll need to edit every place your theme shows a price: the product page, collection grids, search results, quick view, the cart drawer and recommendations. In Online Store 2.0 themes these are spread across several sections and snippets.
What it doesn't do:
- Stop a purchase. Anyone with a variant ID can still add the product through a cart link or the
/cart/addendpoint and check out. - Remove the price from your store's data. The product's
/products/<handle>.jsfile and its structured data still contain the price. One merchant found wholesale prices showing in search results this way; a reply in that thread explains that "Search engines will be pulling the price from the schema.org structured data in the code of the product pages." - Survive a theme change. A theme update or new theme means redoing the edits.
Duplicate your theme before editing, and test as a guest in a private window.
Option 2: Shopify B2B (native, prices for companies only)
If your trade customers are set up as B2B companies, Shopify handles prices for them. In a blended store, "Only logged-in B2B customers can view B2B prices, products, and account information" (blended and dedicated stores). B2B catalogs set fixed prices, percentage adjustments, quantity rules and volume breaks, and can include or exclude products.
This shows wholesale prices only to the right people. It doesn't hide your retail prices from guests: a logged-out visitor sees the store as a retail shopper would. If you want guests to see no price at all, combine it with Option 1 or 3, or make the store private (Option 4).
Option 3: An app that hides prices and blocks the purchase
Price-hiding apps replace the price and buy button for shoppers who don't qualify, without you editing theme code. When choosing one, ask:
- Does it block the purchase, or only hide the button? Shopify lets apps add a cart and checkout validation Function; Shopify's docs say errors it returns "always block checkout".
- Is it uninstall-safe? Apps that run from a theme app embed leave nothing behind. Apps that paste code into your theme can leave it there.
- How is it priced? Many price by Shopify plan. Some have a free plan with one lock.
How Fizz Hide Price does it
Fizz Hide Price takes the third route:
- Rules: hide prices on all products, or by product tag, collection or specific product, optionally only in some countries.
- Who sees prices: any logged-in customer, or customers with tags such as
wholesale. Buyers ordering for a Shopify B2B company can always see prices if you tick that option. - Instead of the price: a "Log in to see prices" link, a "Request a quote" form, or nothing.
- At checkout: a Shopify Function checks every cart line. A shopper the rule doesn't allow sees your message in the cart and can't check out, including through a cart link or
/cart/add. - Uninstall: it runs from a theme app embed, so removing it leaves your theme exactly as it was.
Like theme code, the on-screen hide is display only: the price is still in the page source and the product's .js data. What it adds is the checkout block. It's free to install while it launches.
Option 4: A private store
For a trade-only store, you can password-protect the online store: in Online Store > Preferences, turn on Private mode, set a password, and optionally select Restrict access to B2B customers only. Visitors see the password page instead of your store. This hides everything, which is right for a dedicated wholesale store and wrong for a store that also sells retail.
Quick comparison
| Method | Hides price on screen | Blocks purchase | Price out of page code |
|---|---|---|---|
Liquid {% if customer %} | Yes | No | No |
| B2B catalogs | Shows wholesale prices only to B2B buyers | Guests pay the retail price | Guests get the retail price |
| Price-hiding app with a checkout Function | Yes | Yes | No |
| Private (password) store | Whole store | Yes | Yes |