> For the complete documentation index, see [llms.txt](https://nextsky.gitbook.io/purity-theme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nextsky.gitbook.io/purity-theme/theme-installation/create-required-metafields/metaobjects/filter-occasion.md).

# Filter Occasion

{% hint style="success" %}
**Step Create Metaobjects**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data -->** **Metaobjects** and Click **Add definition**
3. Add metaobject definition with 1 fields as bellow:

**-** Name: **Filter Occasion**

\- Field 1:

\* Name: **Occasion label**

\* Type: **Single line text - One value**
{% endhint %}

<figure><img src="https://1059363070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRcDJSoM26kdEZlVFekVW%2Fuploads%2FbkHQyG8bE4MAWMzh5kv9%2FScreenshot_29.png?alt=media&amp;token=f394f792-10d5-4a6d-b20a-bad9ed10c655" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}

* Back to **Custom data -> Metafields -> Products**
* Add a metafield as bellow:

  \- Name: **Filter Occasion**

  \- Type: **List of entries** - **Metaobjects**\
  \- Reference: Filter Occasion

  \- Namespace and key: **custom.f**ilter\_occasion
* Setup metafield for a product and you can see the result
  {% endhint %}

<figure><img src="https://1059363070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRcDJSoM26kdEZlVFekVW%2Fuploads%2FP9pDoerEsqkTIu9ytUtd%2FScreenshot_28.png?alt=media&amp;token=ff4d582c-b875-427d-88b2-793a9c357403" alt=""><figcaption></figcaption></figure>
