> 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/enable-product-metafield.md).

# Enable product metafield

✨Metafields allow you to store custom data for your products and variants in Shopify. If you want to use metafields in your filters, you’ll need to enable them first in the Smart Product Filter & Search app.

***

### 🔧 How to enable 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@globo.io>** – we’re happy to assist! 😊


---

# 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://docs.globo.io/filter/enable-product-metafield.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.
