Articles on: BSS B2B Lock (New Version)

B2B Lock | How to lock your site from visitors and only allow b2b/wholesale customers to access

If your site is only for b2b/wholesale, this is the one. In this article, we will guide you how to lock the whole site and only allow b2b/wholesale customers to access.


1. BSS: B2B & Wholesale Solution - Registration Forms

You will need first to know how to detect your b2b/wholesale customers. When it comes to b2b/wholesale customers, you might need to able to collect more information from them and to review their registration before approving. If that's the case, our Registration Forms feature can help to achieve so.



  1. From the App > Customer management > Registration Forms > Configuration, you can automatically assign a specific customer tag in Shopify after approval. Let say b2b customer tag for example.
  2. In Shopify, they will then have the tag here.
    => As a result, the next time a customer logins, he/she will be considered as a b2b/wholesale customer.
    screenshot from Shopify


2. B: B2B Lock, Login & Password - Lock pages

  • With the Lock pages feature, you can lock the whole site from non-logged-in visitors and force them to either login with their b2b accounts or create an account to access.
  • For further information on this app, you can check our guide here: B: B2B Lock, Login & Password User Guide.


In this article, we focus on the configs which can achieve the above only.


  1. From the App > Locks > Add lock, you can choose Lock entire store from the Lock Target tab.
  2. Then you choose User type as Tagged customers - Must have specific tags and put b2b customer tag there.
  3. Down below, you can config your lock as well. Click Preview & edit message button and setup your own lock page.
  • Message on Locked Page: You can choose how your lock will look like
  • Message content: You can edit your lock here. Also, you can put the link of your Registration Form to the underlined position in the following image. *For example:**
  • If you have already added your registration form to /account/register page, you can leave it that way.
  • If your form's URL is something like http://example.com/pages/b2b-registration, you can just put /pages/b2b-registration there (href="/pages/b2b-registration").


Result

  • Your site will be locked from non-logged-in visitors
  • If customers already have a b2b account, they can just login and access the site
  • If not, they need to click Create account and submit your b2b/wholesale registration form and waiting for approval
  • Once they are approved, they will have the b2b customer tag in Shopify and be able to login and access the site.


If you have setup both of the above but it's not working properly, feel free to contact our support at support-sbc@bsscommerce.com or via our Live Chat within the app.


Hope this article is clear and helpful. Wish you a wonderful day!😊


By Jonas N.

Updated on: 26/06/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!