> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/filter/filter-sidebar/filter-products-by-metafield.md).

# Filter products by Metafield

✨You can add a filter option based on **Product Metafields** or **Variant Metafields** using the Smart Product Filter & Search app. This is useful for custom attributes like material, style, or any extra data that doesn’t come by default in Shopify.

***

### ✅ Before You Start

Make sure your metafields are already created and contain values in your Shopify admin, as well as being enabled in the app's metafield section (click [here](https://docs.globo.io/filter/~/changes/69/product-variant-metafields/enable-product-metafields) for step-by-step instructions).

* Only **Product** and **Variant** metafields are supported.
* You can’t use metafields from collections, orders, customers, etc.

***

### 🛠 How to Add a Metafield Filter

1. Open the app and go to **Filter** > **Manage Filter**.
2. Click the **Edit icon** on the filter group you want to change.
3. Scroll to **Filter Options** and click **Add Option**.
4. In the **Label** field, enter the name for your filter (e.g., “Material”).
5. Under **Filter Type**, choose either depending on your metafield data:
   * **Product Metafield**
   * **Variant Metafield**
6. Set your **Display Style** (e.g., List, Dropdown, Color Swatch).
7. Click **Add** to save the filter.

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

***

### 📝 Tips

* Use **Product Metafield** for general product attributes.
* Use **Variant Metafield** if the value changes by variant (e.g., different colors have different textures).
* You can customize how the filter looks with display settings.

***

### 💬 Need Help?

If you have any questions or run into issues, feel free to contact our support team at **<contact@globo.io>**. We're happy to help!
