> For the complete documentation index, see [llms.txt](https://www.locksmith.guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.locksmith.guide/tutorials/more/locking-products-by-tag.md).

# Locking products by tag

Locksmith won't lock by tag using the Locksmith search bar. The good news is that you can make this happen with a [smart collection in Shopify](https://help.shopify.com/en/manual/products/collections/smart-collections).

1\. In your Shopify Admin, click on *Products* then *Collections*

*2.* In the upper right, click Create Collection

3\. Name your collection something relevant, and then scroll down and click on the "Smart" option for the collection.

4\. In the conditions area, choose "Product Tag... is equal to" and then add your product tag into that field:

![](/files/b7sTacCSzKLLgKLBEw5G)

5\. Click Save.

Once that's done, search for your new collection by name in the Locksmith search bar, and lock it that way. You'll likely want to enable the "hide from search and lists" option on that collection lock.

Any time you tag a new product with that tag, it'll automatically be in that collection and therefore locked by Locksmith. :)

#### "What happens in the other collections that these products are in?"

Once you create your collection lock, you'll be presented with these options:

![](/files/C2Bn3esGa4HX2ncGdmh7)

The highlighted "Hide from lists" option here controls whether or not the tagged (and therefore locked) products will appear elsewhere. With the option enabled, Locksmith will automatically hide these products (unless the customer is already qualified for access). In that scenario, the customer *will* be able to see the products in your other collections – they won't be prompted for access until they click through to an individual product. With the option *disabled*, the products will remain visible in your other collections. (Note that the customer will still be prompted for access when they click through to a product, even in this scenario.)


---

# 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://www.locksmith.guide/tutorials/more/locking-products-by-tag.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.
