> 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 – Access & 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 Target (hide prices)

1. Go to **BSS B2B Lock → Locks**. The **Lock list** opens.
2. Click **Add lock rule**. The **Start with a preset** modal opens.
3. Select **Create my own lock** and click **Continue**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-4c595c7dd2dc7d5e1b05389ca7587174b78db0c8%2Fpreset-modal.png?alt=media" alt="Start with a preset modal with Create my own lock selected and the Continue button"><figcaption><p>Select <strong>Create my own lock</strong>, then click <strong>Continue</strong>.</p></figcaption></figure>

{% hint style="info" %}
The **Require login to view prices** preset sets up a similar rule for you. This guide uses **Create my own lock** so you can see every setting.
{% endhint %}

4. In the **General Information** card, enter a **Lock name**, for example `Hide prices from guests`. Keep **Status** set to **Enable**.
5. In the **Lock Target** card, open **What do you want to lock?** and select **Price and add to cart**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-144db014581b8a905c68aa41424c908ff58b9d34%2Fstep1-overview-general-target.png?alt=media" alt="Step 1 Lock Target with the General Information (Lock name, Status) and the What do you want to lock? dropdown highlighted"><figcaption><p>Step 1 – Lock Target: name the lock and choose what to lock.</p></figcaption></figure>

6. Under **Which products to restrict?**, set **Restricted products** to **All product**.
7. Under **What do you want to hide?**, select **Hide price**, then select **Disable Add to cart** (the button stays visible but can’t be clicked).
8. Optional: under **Search visibility**, tick **Hide price on Google search** so wholesale prices won’t appear in search results. Your store must be public, and Google may take up to 24 hours to re-index.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-4d530868f8bd02caac149617e41968b8a8dd6c92%2Fstep1-price-hide-options.png?alt=media" alt="Price and add to cart options: Hide price with Disable Add to cart, and Hide price on Google search"><figcaption><p>Select <strong>Hide price</strong> → <strong>Disable Add to cart</strong>, and optionally <strong>Hide price on Google search</strong>.</p></figcaption></figure>

9. Check the **Summary** card on the right. It shows "Applies to all products / Price hidden - Add to cart visible but disabled".
10. 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 the **Rule 1** card, click the **User type** condition chip.
2. In **Select access rule**, select **Signed-in customers - Must be logged in**. This means:
   * **Logged-in customers** → see prices as usual.
   * **Guests** (not logged in) → see your hidden-price message instead.
3. Click **Done**. The **Summary** card shows "Rule 1: Signed-in customer".
4. Check the **Preview** card on the right. It shows the message guests will see in place of the price. To change the text, click **Customize message**, edit the text in **Preview & customize message**, and close the modal.
5. Review that the condition is exactly what you want:
   * No tags or extra conditions yet – just **login state**. This keeps the first setup simple.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-a83b9d2eefbad4c2a0749ef31f4030b99ca3f0da%2Fstep2-signed-in-condition.png?alt=media" alt="Rule 1 set to Signed-in customers, with Summary Rule 1: Signed-in customer and the Preview card"><figcaption><p>Rule 1 = <strong>Signed-in customers</strong>. The Preview card shows what guests see.</p></figcaption></figure>

{% hint style="info" %}
A rule can’t be empty. If you click **Next** without adding a condition, you see "Add at least one condition to this rule before you continue."
{% endhint %}

6. Click **Next** to go to Step 3.

***

### Step 3 – Exclude Pages (optional, then Save)

Step 3 lets you keep some content open even though the lock is active. For this first rule, you can keep it simple.

1. In **Exclude from lock rules**, tick any content that should stay open, such as **Home page**, **Customer areas**, **Policy pages**, **Specific pages** or **Selected products**.
2. For a quick start, you can **leave everything as default**.
3. Click **Save**.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-77985ebabc43cdcdeae8ec501368d6f01d95ecb7%2Fstep3-exclude-pages-no-stepper.png?alt=media" alt="Exclude Pages step with the Exclude from lock rules list, the Summary card and the Save button"><figcaption><p>Step 3 – Exclude Pages: choose what stays open, then click <strong>Save</strong>.</p></figcaption></figure>

{% hint style="info" %}
You can also click **Save** in the Shopify Contextual Save Bar ("Unsaved changes") at the top of the page from any step.
{% endhint %}

After you click **Save**:

* You see the toast "Saved lock settings".
* A banner at the bottom shows "Updating lock, integrate themes and sync with Shopify…" while BSS B2B Lock installs the rule into your theme. This usually takes a few seconds.
* The page title changes to **Edit lock**, and all 3 steps show a ✓.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-72962de2c216fcb43d7651fb4d44dd40f4463c4b%2Frule-saved-all-steps-complete.png?alt=media" alt="Edit lock page after saving, with all 3 steps ticked and the Summary card complete"><figcaption><p>After saving, all 3 steps are ticked and the Summary card is complete.</p></figcaption></figure>

***

### 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.
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 the **Add to cart** button is visible but disabled.
   * Instead, you’ll see your custom “login to see price” message.
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.
* Check the rule’s **Status** toggle in the **Lock list**. If you saved the rule with **Status** set to **Enable**, the toggle is already on. If the toggle is off, turn it on, then click **Save** in the Contextual Save Bar to activate the rule.

<figure><img src="https://684288492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJh4ZJQcYHPWkPeDOGrHj%2Fuploads%2Fgit-blob-92c04e8b205485017b2c1fcd874407735a6d3aff%2Flock-list-toggle.png?alt=media" alt="Lock list with the Status toggle of the new rule highlighted"><figcaption><p>A rule saved with Status set to Enable shows the toggle on. If it is off, turn it on and click <strong>Save</strong> in the Contextual Save Bar.</p></figcaption></figure>

* 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** (if you ticked **Hide price on Google search** in Step 1).

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.
