> 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/content-to-lock/overview/variants.md).

# Variants

Lock down to specific variants — one size or color — instead of the whole product.

Choose **Variants** when only some options of a product should be locked — for example, a limited-edition color, or a size reserved for wholesale customers — while the rest of the product stays open to everyone.

## Create the lock

1. Open **Locks** in the app's navigation.
2. Click **Create lock**.
3. Give the lock a descriptive name, for example "Reserved size — wholesale only."
4. On the **Lock setup** tab, in the **Content to lock** dropdown, choose **Product variants**.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-4e80aa1266c5cfd659df7a37ced9062adacf721e%2Fscreenshot-locks-content-picker-variants.png?alt=media" alt="The Content to lock dropdown with Product variants selected."><figcaption><p>Choose Product variants to lock down to individual product options.</p></figcaption></figure>

5. Use the picker to search for the product, then select the specific variant or variants you want to lock. You can select variants across multiple products in the same lock.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-262b48d9f1a3d7bab3dd7d7d38db79f0e2970443%2Fscreenshot-locks-variants-picker.png?alt=media" alt="The variant picker showing individual product variants selected for locking."><figcaption><p>Search for a product, then select the specific variants to lock.</p></figcaption></figure>

{% hint style="info" %}
Locking specific variants may require a paid plan depending on your current plan.
{% endhint %}

6. Click the **Unlock rules** tab to continue.

## Add an access rule

7. Add at least one rule. See [Access rules overview](/b2b-lock-password-protect/access-rules/overview.md) for the full catalogue.
8. Add every required condition to the access key. All conditions must be satisfied. See [Combining rules](/b2b-lock-password-protect/access-rules/combining-rules.md).

## Choose a lock behavior

On the same **Unlock rules** tab, the right-hand sidebar has a **Blocked visitor behavior** panel — configure it alongside your rule:

9. [Hide price and Add to cart](/b2b-lock-password-protect/lock-behavior/hide-price-and-add-to-cart.md) is the natural fit here — the rest of the product stays fully visible while only the locked variant's price or Add to cart control is affected. Review [Lock behavior overview](/b2b-lock-password-protect/lock-behavior/overview.md) for all the available options.

## Save

10. Click **Save**. The lock takes effect on your storefront as soon as the app embed is enabled.

## Related docs

* [Products and variants](/b2b-lock-password-protect/content-to-lock/overview.md)
* [Specific products](/b2b-lock-password-protect/content-to-lock/overview/specific-products.md)
* [Access rules overview](/b2b-lock-password-protect/access-rules/overview.md)
* [Manage locks](/b2b-lock-password-protect/locks/manage-locks.md)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.samita.io/b2b-lock-password-protect/content-to-lock/overview/variants.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
