> 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/~/changes/69/product-variant-metafields/enable-product-metafields.md).

# Enable product metafields

The **Smart Product Filter & Search** app allows you to filter and sort products using **Product** and **Variant** metafields.

***

### 🔧 How to declare a metafield in our app settings

1. Open the **Smart Product Filter & Search** app from your Shopify admin.
2. Go to the **Settings** section.
3. Select the **Metafields** tab.
4. Click the **Add Metafield** button.<br>

   <figure><img src="/files/VPNVLpCqtCI9WPCKqK0D" alt=""><figcaption></figcaption></figure>
5. In the popup window, choose a metafield resource: **Product** or **Variant**.
6. Enter the **Namespace** and **Key** of the metafield you want to use.
7. Under **Applies to**:
   * Check **Filter & Search** to use the metafield as a filter.
   * Check **Sort** to use it for sorting.
8. Click **Save** to finish.

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

***

### ❓ How to find the Namespace and Key of a metafield

1. In your Shopify admin, go to **Settings** and open **Metafields**.
2. Select either **Products** or **Variants**.
3. Click on the metafield you want to use.
4. You'll see the **Namespace** and **Key** displayed in the metafield details.

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

***

### ⚠️ Can’t See Your Metafield Data?

If your metafield data doesn’t show up, you may need to create a definition:

1. Go to **Settings > Metafields** in your Shopify admin.
2. Choose **Products** or **Variants**.
3. Click on the **Metafields without a definition** tab.
4. Click **Add definition** and follow the steps to define it.

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

***

💬 **Need Help?** Contact us at **<contact@globosoftware.net>** – we’re happy to assist! 😊
