> For the complete documentation index, see [llms.txt](https://docs.b2bridge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2bridge.io/app-configuration/lock-hide.md).

# Lock & Hide

Lock & Hide lets you control what different customers can see and access on your storefront. You can restrict entire product categories, individual products, prices, or specific pages and define exactly who is allowed to view them.

### Setup

This guide walks you through creating a Lock & Hide rule, choosing what to lock or hide, who can access it, and what restricted customers see.

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2Fo3xuSVwcMkKSnMntOufT%2Fimage.png?alt=media&amp;token=34f86197-2b26-45e7-947f-c0b0ee04a422" alt=""><figcaption></figcaption></figure>

Go to **Dashboard** > **Lock & Hide** in the sidebar and click **Create lock**.

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FTooqdhl1CfoV5Hv1mpuD%2Fimage.png?alt=media&amp;token=0b57a6ad-1fd6-40b6-924b-8874f0de2357" alt=""><figcaption></figcaption></figure>

#### Step 1: General information

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FalyfTek3Z2MoYXfQpXaW%2Fimage.png?alt=media&amp;token=cf4a44ee-60b0-4678-b634-7a5c2d54713b" alt=""><figcaption></figcaption></figure>

* **Lock name:** enter an internal name for this rule (not shown to customers).
* **Status:** set to **Enabled** to activate the rule, or **Disabled** to save it without applying it yet.

#### Step 2. Choose what to lock or hide

In the **Choose what to lock/hide** section, select the lock type:

**Entire store**

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FOUZsX8lXGb9dj1B4UhJ9%2Fimage.png?alt=media&amp;token=c1fe01cf-1f48-4655-bd62-aa49ded6fcc6" alt=""><figcaption></figcaption></figure>

Locks your entire storefront. All pages and products require the access condition to be met.

**Lock collections**

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2F4PvIBVcq0ZetY7lCdkv5%2Fimage.png?alt=media&amp;token=0f03e334-5026-4d39-87c1-c6310a6235b8" alt=""><figcaption></figcaption></figure>

Choose which collections to lock:

* **All collections:** every collection on your store
* **Specific collections:** search and select individual collections

All products within a locked collection are also locked.

**Lock products**

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FiBqcKJSWkXlMXT7saokw%2Fimage.png?alt=media&amp;token=2fac1463-bb63-4d9d-8d64-f13905c62943" alt=""><figcaption></figcaption></figure>

Choose which products to lock:

* **All products:** every product on your store
* **Specific products:** search and select individual products
* **Products in price lists:** lock all products belonging to specific Price Lists

We also have the option to Lock all products **except for:**

* **Specific product**: Use the Search products bar to select the products you want to exclude from the Lock all.
* **Products in price list**: Use the Search price lists bar to select the products from the price list you want to exclude from the Lock all.

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FWYVdh83C3nK6q3ONMpsY%2Fimage.png?alt=media&amp;token=5e309831-01f9-4000-a29c-fe063205b3dd" alt=""><figcaption></figcaption></figure>

**Hide product prices**

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FdfQ5QAbmJnmJcfVyGTQO%2Fimage.png?alt=media&amp;token=b3c10ba0-47d2-4eee-a958-90da19382b61" alt=""><figcaption></figcaption></figure>

Choose which products have their price hidden from non-qualifying customers. Products are still visible, but the price is replaced by your custom message. Options: all products, specific products, or products in specific Price Lists.

**Specific pages**

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FsBCrZkkg9fZpzmHGgK7N%2Fimage.png?alt=media&amp;token=e074f788-4ce3-4bae-b33a-7f2fe33aa764" alt=""><figcaption></figcaption></figure>

Select individual pages to lock: Homepage, Customer log-in/registration page, or other custom page URLs.

You can also specify **Pages to exclude from being locked** — for example, exclude your login page even when locking your entire store.

#### Step 3: Who can access

In the **Choose how customers can access locked content** section, define the access condition:

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FnL0x34KJM8nHsIxlFIOO%2Fimage.png?alt=media&amp;token=fa232200-ced0-4848-9fc6-39235c083639" alt=""><figcaption></figcaption></figure>

* **All logged-in customers:** anyone with a store account
* **Customers belong to customer groups:** select specific Customer Groups
* **Select specific customers:** search and pick individual customers
* **Enter password:** customers gain access by entering a passcode you define
* **Members belong to specific company:** select a Company Account

You can also use the **Invert** button to flip the logic  for example, to block specific customers rather than allow them.

#### Step 4: Display settings

In the **Choose what to display to restricted customers** section, configure the message or interface shown to customers who don't meet the access condition.

<figure><img src="https://3178254478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjESAmWxlqUBmvo5xvYcH%2Fuploads%2FMrJ1Grelis9ayQGnTyty%2Fimage.png?alt=media&amp;token=49a3fbe3-089c-4b69-9dad-5d0e23da4b7d" alt=""><figcaption></figcaption></figure>

**For locked content (non-price-hiding rules)**

Enter the message or redirect URL that restricted customers see when they try to access locked content.

**For Hide price rules**

Use the visual editor to customise the message that replaces the price. You can adjust the font, color, font style, and size. Switch to the **Edit HTML** tab to customise the message further with raw HTML.

A **Preview** panel shows how the message will look on your storefront.

Click **Save**. The rule activates immediately if the status is set to **Enabled**.

***

***

{% hint style="success" %}

### Need Help?

If you have questions or run into issues while using any feature, we're here to help.

* 💬 **Start a** [**Live Chat** with our support team](https://go.crisp.chat/chat/embed/?website_id=a59f354c-f51f-4f84-ae9a-c0e8dd69d2e5) directly from your B2Bridge dashboard.
* 📧 **Email us at** [**support@b2bridge.io**](mailto:support@b2bridge.io) and we'll get back to you as soon as possible.
  {% endhint %}
