# 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="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2FPcQh9qIzJsMYS5ASVPNT%2Fimage.png?alt=media&#x26;token=fea00f21-36bb-4474-b18c-fccb7b96018d" 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="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2FVJn8tF7UzwyrSHKj2tpe%2Fimage.png?alt=media&#x26;token=826a3493-565f-4282-95cd-60fbe2f5aca2" 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="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2FBlNGehBIPV9oSplCrZIh%2Fimage.png?alt=media&#x26;token=c012d776-e151-4069-9bf1-6568919fd77d" 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="https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2Fs2iO65N5MVTjzDnFdumX%2Fimage.png?alt=media&#x26;token=ac950e25-2e74-4cbd-bba5-cbe1a1277ef9" alt=""><figcaption></figcaption></figure>

***

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