> 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.../create-a-secret-collection-just-for-approved-b2b-customers-with-b2b-app.md).

# Create a secret collection just for approved B2B customers (with B2B app)

**Goal**\
Combine **B2B Lock** with **B2B & Wholesale Solution (B2B app)** so that only **approved B2B customers** can see a special collection.

**When to use this recipe**

* You’re using B2B & Wholesale Solution for **registration + approval**.
* Approved B2B customers are automatically tagged (e.g., `b2b-approved`).
* You want a **secret B2B-only collection** that retail customers never see.

***

#### Step 0 – Before you start

* Confirm that B2B & Wholesale Solution is set up so approved customers get a tag (e.g. `b2b-approved` or `wholesale`).
* Create (or identify) the **B2B-only collection** in Shopify (e.g., “B2B Only”, “Wholesale Catalog”).

***

#### Step 1 – Lock content

1. Go to **Locks → Add lock**.
2. In **Step 1 – Lock content**:
   * Name: `Secret B2B collection`.
   * Target: **Hide collections**.
   * Select the B2B-only collection.

This ensures the collection is hidden from anyone who doesn’t match the access rules.

***

#### Step 2 – Control access

1. In **Step 2 – Control access**:
   * Condition: **If the customer is tagged with `b2b-approved`** (or whatever tag the B2B app uses).
2. Optional:
   * Combine with **signed-in** condition if you want to enforce login as well.

This makes your B2B registration/approval flow the **gatekeeper** to the secret collection.

***

#### Step 3 – Advanced settings

* Message for blocked users:
  * “This collection is reserved for approved B2B customers. Please apply for a B2B account or log in with your approved email.”
* Add links:
  * “Apply for B2B account” → registration form from B2B & Wholesale Solution.
  * “Log in” → Shopify login page.

Click **Save**.

***

#### Check your storefront

* As a **guest or normal retail customer** → the B2B collection should be invisible in navigation, collection lists, and search.
* As an **approved, tagged B2B customer** → after logging in, the collection should appear and function normally.

This setup creates a clean, connected **B2B flow** across both apps.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-shpf.bsscommerce.com/bss-b2b-lock-login-password-hide-price/lock-core-concepts/goal-based-guides-i-want-to.../create-a-secret-collection-just-for-approved-b2b-customers-with-b2b-app.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
