> 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/getting-started/create-your-first-lock-5-minute-setup.md).

# 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 Target → Step 2 – Message & Message → Step 3 – Exclude Pages**

### Before you start

Make sure:

* You’ve **installed BSS B2B Lock** and can open it from Shopify admin.
* The **App Embed** for BSS 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)

1. In the **Locks** section, click **Add lock**.
2. In **Step 1 – Lock Target**:
   * Give your rule a clear name, for example:\
     **Rule name:** `Hide prices from guests`
   * For **Target**, choose **Hide prices**.
3. Choose **which products’ prices** you want to hide:
   * All products, or
   * Specific collections / products (depending on your version’s UI).&#x20;
4. 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.&#x20;

Click **Next** to go to Step 2.

***

### Step 2 – Access & Message (guests vs logged-in)

Now we define **who can see the prices**.

1. 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.
2. Scroll down to the **Message / Hide price message** section.&#x20;
   * 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.
3. 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 – Exclude Pages (optional, then Save)

Step 3 lets you fine-tune behavior. For this first rule, you can keep it simple.

1. In **Step 3 – Exclude Pages**, review any available options such as:
   * Excluding specific products or pages (if needed).
   * Any additional behavior you want to enable later.&#x20;
2. For a quick start, you can **leave everything as default** and click **Save**.

After you click **Save**:

* BSS 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.&#x20;

If you see a “BSS 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:

1. Click the **Check your store** button (if shown), or open your storefront in a new tab.&#x20;
2. 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.&#x20;
3. 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 **<support-sbc@bsscommerce.com>** 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.
