> For the complete documentation index, see [llms.txt](https://webibazaar.gitbook.io/flute-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://webibazaar.gitbook.io/flute-documentation/collection-filter-color-swatch-from-metaobject.md).

# Collection filter color swatch from metaobject

{% embed url="<https://salesiq.zohopublic.in/signaturesupport.ls?widgetcode=siq93f38201da244cbe219b2cab71813c85342abc57dd769c6885e2bde57d2b90da>" %}

#### Display the color swatch using the metaobject in the collection filter, follow the steps below

* From your Shopify admin, go to **Settings** > **Custom data.**

<figure><img src="https://2356931311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wXphKnAlRWTA61K8EmG%2Fuploads%2F4JVKPanG84mb0zJrkHJv%2Ftheme-setting.png?alt=media&amp;token=fbe22d58-b3bc-46e2-9f5e-25f4f7f9da6b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2356931311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wXphKnAlRWTA61K8EmG%2Fuploads%2FVou5pjLa4Itszm3lsHYc%2Fmeta-coll.png?alt=media&amp;token=27d35e8b-112e-40c4-b417-5ad2fa3fb9bd" alt=""><figcaption></figcaption></figure>

Click on "**Add definition".**

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/ZDhljiNdNcwqFfFjdWxW/meta3.png" alt=""><figcaption></figcaption></figure>

Add the desired name if needed and Add field.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/KhIMXTEXkFbLfoWhL1WB/meta4.png" alt=""><figcaption></figcaption></figure>

Select **File** type.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/RNruiVXolNt0qP4k7ySh/meta5.png" alt=""><figcaption></figcaption></figure>

Add the desired name if needed and Accept all file types, then click on **Add** button.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/mz21YtnWyCgWAcGF7WoJ/meta6.png" alt=""><figcaption></figcaption></figure>

To add a second field, click on '**Add Field**' again.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/3UcAxwNHnW3Nxi969fSs/meta7.png" alt=""><figcaption></figcaption></figure>

Click on "Single line text".

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/MqJSaE3q59NURqGR1GFJ/meta8.png" alt=""><figcaption></figcaption></figure>

Add the desired name if needed and click on "Use as filter in metaobject index", then click on **Add** button.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/DCJSfjwCnMZuIC82awzm/meta9.png" alt=""><figcaption></figcaption></figure>

The metaobject fields you created will be displayed. Then click 'Save'.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/6FvwIxk9AhCwvJqyIHeY/meta10.png" alt=""><figcaption></figcaption></figure>

From your Shopify admin, go to **Settings** > **Custom data > Products.**

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/vvlVkgQQH3p7kJKNwrEw/meta11.png" alt=""><figcaption></figcaption></figure>

Click on "**Add definition**".

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/dsUbsBbe2jBT46KJjN3i/meta12.png" alt=""><figcaption></figcaption></figure>

Add the desired name if needed. The name you add here will be displayed in the collection page filter. then click on Select type.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/w0aLhjA9BExmaW7J2auA/meta13.png" alt=""><figcaption></figcaption></figure>

Click on "**Metaobject**".

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/vP9PtrydAS6qFr6LQUf6/meta14.png" alt=""><figcaption></figcaption></figure>

Select the "**Reference**".

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/G37x0B4WxEeMEBAwgRlS/meta15.png" alt=""><figcaption></figcaption></figure>

Click on created metaobject, then select the "List of entries" and **Save**.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/Dr4KK5omH8wmumhcomG0/meta16.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/b2UdDUAJ5KFcTorYPN83/meta17.png" alt=""><figcaption></figcaption></figure>

From your Shopify admin, go to **Content > Metaobjects.**

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/TJBBFBDNfYyvQuntv2kR/meta18.png" alt=""><figcaption></figcaption></figure>

Click on "Add entry".

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/pTXy23vDgVLroYXuwTGt/meta19.png" alt=""><figcaption></figcaption></figure>

Select the image you want to display in the color swatch filter and add a label, Then Save.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/LxGi8jxR1vzJGemPV3f3/meta20.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/TXbascRidQpPcNPP8xtK/meta21.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/0cLvsGqXVWx8gwqlXWpX/meta22.png" alt=""><figcaption></figcaption></figure>

Install the "**Search & Discovery**" app and open it.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/FYRVFqwvsupoODzoDObM/meta23.png" alt=""><figcaption></figcaption></figure>

Click on "Filters" and Add filter.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/G71AytL47h3iOPXqiFmE/meta24.png" alt=""><figcaption></figcaption></figure>

Select the source.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/9yOL9fHBy9FlHG8TxoKt/meta25.png" alt=""><figcaption></figcaption></figure>

Select the metafield for the name that you created in the product here and Save.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/Mor0scCLCQOc5zDe6q2C/meta26.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/OZJe1tEVn9rg8DMqI2gM/meta27.png" alt=""><figcaption></figcaption></figure>

From your Shopify admin, go to **Products** and select any one product.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/1fyGbfKrmV4ARtYdZlJ2/meta28.png" alt=""><figcaption></figcaption></figure>

Select the entry you added in the metaobject under the content section here and Save.

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/9tqjLGHnmupPeDKaipIn/meta29.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/2wXphKnAlRWTA61K8EmG/blobs/jUGkL3M9Zk8KNwAj56vV/meta30.png" alt=""><figcaption></figcaption></figure>
