# Locking products by vendor

Locksmith can search for and lock products based on the product vendor. A lock can be created for all products from a specific vendor by searching for the name of that vendor in the search bar on the Locksmith app's homepage.

<figure><img src="/files/HiU3WWnynhlRvxXkBNuk" alt=""><figcaption><p>Image 1. Example of a vendor search where the vendor name is "Locksmith".</p></figcaption></figure>

Shopify's product vendors are part of the organization section on a products information page. More on that in the Shopify's guide below:

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

[Shopify Product details - Organization](https://help.shopify.com/en/manual/products/details#product-organization)

## Vendor locks vs Collection locks

### Similarities:

* Vendor locks work in a similar way to collection locks: where a single lock can be used to hide and manage access to multiple products.
* Vendor locks and collection locks both have a "Hide this vendor/collection and their products" option. That can be used to tell the lock to filter locked products from the store's native search and collection lists.

{% content-ref url="/pages/zROi6atqaMjwYTVodQVb" %}
[Can Locksmith hide content from my in-store search?](/faqs/can-locksmith-hide-content-from-my-in-store-search.md)
{% endcontent-ref %}

### Differences:

* Collection locks have a "Hide any links to this collection and its products" option that vendor locks do not. This option can be used to hide menu navigation links for locked products in a collection from the stores native header and footer menus.
* Collections can be used to present a specific group of products in one place. When the collection is locked Locksmith will present an access message and content relevant to the locks key conditions.\
  \
  This is useful if you would like to present a central location to send customers to that contains restricted products they should have access to.

## Creating a collection that for vendors

This section covers using your Shopify admin to create a custom automated collection that includes products based on product's vendor

1. In your Shopify Admin, navigate to Products > Collections
2. In the upper right, click Create Collection
3. Name your collection something relevant, and then scroll down and click on the Automated option for the collection.
4. In the conditions area, choose "Product Vendor... is equal to" and then add your product Vendor into that field:

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

5. Click Save.

Once your collection has been set up, search for your new collection's title in the search bar on the Locksmith homepage, and create your lock. You'll likely want to enable the "hide from search and lists" option on that lock.

Any time you add that vendor to a product, it'll automatically be included in that collection and therefore locked by Locksmith. :)

## Related articles

{% content-ref url="/pages/M9JRoxsNMqxR7taTbDTe" %}
[Creating locks](/basics/creating-locks.md)
{% endcontent-ref %}

{% content-ref url="/pages/R62VYgCUL8a2ModXFqyS" %}
[Locking products by tag](/tutorials/more/locking-products-by-tag.md)
{% endcontent-ref %}

## Something else not covered here?

Let us know by emailing us at: **<team@uselocksmith.com>**


---

# Agent Instructions: 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-vendor.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.
