> For the complete documentation index, see [llms.txt](https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/lock-core-concepts/goal-based-guides-i-want-to.../lock-pages-with-login-signup-form-or-custom-message.md).

# Lock pages with login / signup form or custom message

Hide one or more wholesale collections from guests and show them only to logged-in or approved customers.

**Goal**\
Hide one or more **wholesale collections** from guests and show them only to logged-in or approved customers.

**When to use this recipe**

* You have a collection like **“Wholesale” / “B2B Catalog” / “Distributor Products”**.
* You want regular visitors to see only your retail catalog.

***

#### Step 0 – Before you start

Identify:

* The **wholesale collection(s)** you want to hide.
* Whether access is granted to **any logged-in customer** or only **tagged wholesale customers**.

***

#### Step 1 – Lock Target

1. Go to **Apps → B2B Lock → Locks → Add lock rule**.
2. In the **Start with a preset** modal, select **Create my own lock** (or **Require login to view collections**), then click **Continue**.
3. In **Step 1 – Lock Target**:
   * Name the rule in **Lock name**:\
     `Hide wholesale collections from guests`
   * In **What do you want to lock?**, select **Collections**.
   * Under **Which collections to restrict?**, select **Specific**, then use **Search collections** to open the **Select collections** picker.
   * Tick the collections you want to hide (e.g., “Wholesale”, “B2B Only”) and click **Select**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-5b487140f9da2a2ffe1fba501cfb708d643b2edb%2Fstep1-collections-picker-wholesale.png?alt=media" alt="Select collections picker with Wholesale Collection ticked and the Select button"><figcaption><p>Select collections — tick the wholesale collection and click Select</p></figcaption></figure>

4. Under **Visibility settings**, keep the options you need. All four are ticked by default:
   * **Hide collection cards**
   * **Hide product cards**
   * **Hide product pages**
   * **Hide from navigation menu**
5. Click **Next**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-2decbbfc094a5010a466eea7398e8f3c1d95f8d1%2Fstep1-collections-specific-wholesale.png?alt=media" alt="Collections target with Specific selected, Wholesale Collection listed and the Summary card updated"><figcaption><p>Step 1 — Lock Target. Wholesale Collection selected, with the Summary showing 1 specific collection</p></figcaption></figure>

***

#### Step 2 – Access & Message

Choose who can see those collections:

**Option A – Any logged-in customer**

* Condition: **User type → Signed-in customers - Must be logged in**\
  → All registered customers see wholesale collections; guests do not.

**Option B – Only approved wholesale customers**

* Condition: **User type → Tagged customers – Must have specific tags** with the tag `wholesale` in the **Customer tag** field\
  → Only tagged wholesale customers see them.

Steps:

1. In **Rule 1**, click the **User type** condition chip and choose your access rule from **Select access rule**.
2. If using tags, ensure your customers are correctly tagged (e.g., synced from B2B registration app).
3. Customize what happens if a guest hits a wholesale collection URL directly. In the **Preview** card, click **Customize message** and set a message such as:
   * “This collection is for wholesale customers only. Please log in or request access.”
4. Click **Next**.

***

#### Step 3 – Exclude Pages

Optional refinements:

* In **Exclude from lock rules**, check any pages that must stay visible to everyone (e.g., **Home page**, **Customer areas**, or **Specific pages**).
* To keep a retail collection visible, leave it out of the collections you selected in Step 1.

Click **Save** (the button next to **Back**, or **Save** in the **Unsaved changes** bar at the top of the page).

***

#### Check your storefront

1. As a **guest**:
   * Wholesale collections should not appear in navigation, collections lists, or search results.
   * Direct access to their URL should show your lock message.
2. As a **logged-in or tagged wholesale customer**:
   * The same collections should appear and behave normally.

***

## **Still Need Help?**

If you have questions or need assistance configuring BSS B2B Lock, our dedicated support team is here to help.

* **In-App Assistance:** Click **Need help?** or use the in-app chat button within BSS B2B Lock.
* **Email Support:** Contact us at [**support-sbc@bsscommerce.com**](mailto:support-sbc@bsscommerce.com) with your store URL and specific rule details.
