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.

Updated

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

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:

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:

  1. 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".
  2. 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.
  3. 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:

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 %}YesNoNo
B2B catalogsShows wholesale prices only to B2B buyersGuests pay the retail priceGuests get the retail price
Price-hiding app with a checkout FunctionYesYesNo
Private (password) storeWhole storeYesYes