# 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="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2FCHaQdYzfCQYIud2KJKNt%2Fimage.png?alt=media&#x26;token=ed5861b6-0092-42f8-b19e-1bef407e62ae" 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@globosoftware.net>**. We're happy to help!
