Lock your entire website & only allow B2B/wholesale customers
Goal Make your store fully private so only approved B2B/wholesale customers can see any content.
When to use this recipe
You run a wholesale-only business.
You don’t want the public to browse your catalog or prices.
You only sell to approved customers (e.g., tagged with
wholesale).
Step 0 – Before you start
Decide which customers are “approved” (usually via tags like
wholesale,b2b-approved,partner).Make sure your B2B approval flow (e.g., registration form from B2B & Wholesale Solution) is set up to assign those tags.
Step 1 – Lock content
Go to Apps → B2B Lock → Locks → Add lock.
In Step 1 – Lock content:
Name:
Lock entire site for wholesale only.Target: Entire website (or equivalent “all storefront” option).
This tells B2B Lock to treat the whole store as gated content.
Step 2 – Control access
Let’s allow only tagged wholesale customers:
In Step 2 – Control access:
Add condition: If the customer is tagged with
wholesale(or your chosen tag).
Optional:
Add OR conditions for internal tags (e.g.,
staff,test) if needed.
Everyone else (guests + non-wholesale customers) will see the lock message.
Step 3 – Advanced settings
Make the message clear and helpful:
Headline: “Wholesale access only”.
Body: “This store is available only for approved B2B customers. Please log in with your wholesale account or request access.”
Add buttons/links:
Login
Request wholesale account (link to your B2B registration page)
Optionally, exclude public pages like Contact or About from this lock if you still want those visible.
Click Save.
Check your storefront
As a guest or non-tagged customer → you should see the lock screen when visiting the homepage.
As an approved, tagged wholesale customer → you should see and use the site normally after logging in.
Last updated
Was this helpful?