> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/b2b-lock-password-protect/lock-1/creating-lock-for-specific-collections.md).

# Creating Lock for specific Collections

**Steps to manage**

1. Open the app > click on the **Locks** section > **Create Lock**

<figure><img src="/files/ycdtozxRXeOduQQylhTC" alt=""><figcaption></figcaption></figure>

2. Choose the type of lock you want > **Specific Collections** > **Create lock:**&#x20;

<figure><img src="/files/XNjSIgnGxsMZCjpmajAH" alt=""><figcaption></figcaption></figure>

3. Set up **Name** for the lock.
4. In the **Restricted collections** setting > Click **Manage collections** and select the collection you want to add to this lock:

<figure><img src="/files/3eqS47BEobkqnkT00bpp" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GAFcjF5B5rW0Cf1AKoBH" alt=""><figcaption></figcaption></figure>

4. In the **Product Settings** section:&#x20;
   * If you want to **hide the entire product** (cannot access product pages and not show products in the product list) - **Turn on the setting: Fully hide products** &#x20;

<figure><img src="/files/oXz5OemVluGYk4xMP1Ka" alt=""><figcaption></figcaption></figure>

*\*Enable the setting: **Display placeholder cards in the product list** if you want to show a placeholder for the hidden products when they are showing in other non-locked collections.*

* If you just want to **hide price and cart button of the product** (can access product page and the product itself can still be seen in the product list) - **Turn off the setting: Fully hide products** and check on the below settings:&#x20;

<figure><img src="/files/N082JUY822194v0Gkd0V" alt=""><figcaption></figcaption></figure>

5. Set up **Conditions settings**: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this [document](https://docs.samita.io/b2b-lock-password-protect/lock-1/lock-condition):

<figure><img src="/files/Qaoh7GnXhDUaTXZjtBYa" alt=""><figcaption></figcaption></figure>

6. Click **Save** to update the changes.

Check the result on the front store.&#x20;

{% hint style="success" %}
**Need support?**

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://samita.io/pages/contact)
{% endhint %}


---

# 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:

```
GET https://docs.samita.io/b2b-lock-password-protect/lock-1/creating-lock-for-specific-collections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
