> 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-variants.md).

# Creating Lock for specific Variants

If you are looking for a feature that won't hide the whole product but only hide a specific variant/option of the product, Sami B2B Lock has a setting whick allows you to manage that.&#x20;

**Steps to manage**

1. Open the app > click on the **Locks** section > **Create Lock**
2. Please choose "**Specific products**" as lock content because this lock type has an option to hide product variants.

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

3. In the **General settings** > Set up **Name** for the lock:
4. In the **Restricted products** section, choose **Variant product** option > Browse > Select the variants of product you want to hide:

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

5. In the **Product Settings** section, you can only choose to **hide price of the variant and block cart button from showing when the variant is selected**. The whole variant will still show and be clickable in the product page.

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

6. 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/w2EfvyPlydBUWuPAmttq" alt=""><figcaption></figcaption></figure>

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

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


---

# 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-variants.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.
