Create Your First Lock (5-minute setup)
Goal: Hide prices from guest users and show them only to logged-in customers.
This is the most common first setup for B2B / hybrid stores: guests can browse products, but they can’t see prices until they log in. We’ll do it using the 3-step Rule Builder:
Step 1 – Lock content → Step 2 – Control access → Step 3 – Advanced settings
Before you start
Make sure:
You’ve installed B2B Lock and can open it from Shopify admin.
The App Embed for B2B Lock is enabled in your current theme (Online Store → Themes → Customize → App embeds → toggle on).
You’re on the Locks screen inside the app (see Quick Tour of the Dashboard).
Step 1 – Lock content (hide prices)
In the Locks section, click Add lock.
In Step 1 – Lock content:
Give your rule a clear name, for example: Rule name:
Hide prices from guestsFor Target, choose Hide prices.
Choose which products’ prices you want to hide:
All products, or
Specific collections / products (depending on your version’s UI).
Open the Price settings tab (or equivalent section) and, if you want, enable the option to hide prices on Google Search so wholesale prices won’t appear in search results.
Click Next to go to Step 2.
Step 2 – Control access (guests vs logged-in)
Now we define who can see the prices.
In Step 2 – Control access, choose the condition:
If the customer is signed in (or equivalent “logged-in customers only” rule). This means:
Logged-in customers → see prices as usual.
Guests (not logged in) → see your hidden-price message instead.
Scroll down to the Message / Hide price message section.
Customize the message guests will see in place of the price, for example:
“Please log in to see wholesale prices.”
Add a Login and/or Create account link if available in the UI.
Review that the condition is exactly what you want:
No tags or extra filters yet – just login state. This keeps the first setup simple.
Click Next to go to Step 3.
Step 3 – Advanced settings (optional, then Save)
Step 3 lets you fine-tune behavior. For this first rule, you can keep it simple.
In Step 3 – Advanced settings, review any available options such as:
Excluding specific products or pages (if needed).
Any additional behavior you want to enable later.
For a quick start, you can leave everything as default and click Save.
After you click Save:
B2B Lock will automatically start installing the rule into your theme.
This usually takes a few seconds; you’ll see a toast notification when it’s done.
If you see a “B2B Lock is being installed to your theme” message, just wait until it confirms completion.
Step 4 – Check your storefront
Once the rule is saved and installed:
Click the Check your store button (if shown), or open your storefront in a new tab.
As a guest (not logged in):
Visit one of the products or collections you targeted in Step 1.
You should no longer see prices (and possibly “Add to cart”, depending on your settings).
Instead, you’ll see your custom “login to see price” message.
Log in as a customer:
Refresh the same product or collection page.
Prices should now be visible as normal.
If the result isn’t what you expected:
Double-check that the app embed is enabled in the theme.
Confirm the rule is Active in the Locks list.
Use the in-app Contact us link or email [email protected] and share your store URL plus screenshots – the BSS Commerce team can help review your setup.
What you’ve just achieved
In under 5 minutes, you have:
Hidden prices from all guests.
Shown prices only to logged-in customers.
Optionally kept your B2B prices off Google search, depending on your Step 1 settings.
This pattern is the foundation for more advanced B2B setups (e.g., show different catalogs for tagged customers, lock entire site for B2B only, etc.) – which we’ll cover in the next sections.
Last updated
Was this helpful?