Hide prices from guest users
Goal Let visitors browse your catalog, but hide prices until they log in.
When to use this recipe
You run a hybrid B2B + B2C or wholesale store.
You want only logged-in customers to see prices and place orders.
Step 0 – Before you start
Make sure:
B2B Lock is installed and the App Embed is enabled.
You can open the app and see the Locks list.
Step 1 – Lock content
Go to Apps → B2B Lock → Locks.
Click Add lock.
In Step 1 – Lock content:
Name your rule:
Hide prices from guestsChoose Hide prices as the target.
Decide the scope:
All products, or
Only specific products/collections (e.g., wholesale catalog).
(Screenshot idea: Rule Builder – Step 1 with “Hide prices” selected.)
Step 2 – Control access
Switch to Step 2 – Control access.
Add condition:
If the customer is signed in → Logged-in customers see prices; guests don’t.
Scroll down to the message settings and customize what guests see instead of prices, for example:
Text: “Please log in to see prices.”
Add Login / Create account links if available.
(Screenshot idea: condition list with “is signed in” selected.)
Step 3 – Advanced settings
You can keep this simple for now:
Leave most options as default.
Optionally:
Fine-tune whether “Add to cart” is shown or hidden for guests.
Adjust any extra messaging or styling.
Click Save.
Check your storefront
Open your storefront in a private/incognito window (guest).
Navigate to a product or collection covered by this rule:
You should not see prices.
You should see your custom “login to see price” text.
Log in as a customer and refresh:
Prices should appear as normal.
Last updated
Was this helpful?