# Create custom metafield

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

#### display the custom metafield using the metafield to add in product or custom badges, follow the steps below

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

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FwoHA4har7zGfbfWpuzvA%2Fadmin_setting.png?alt=media&#x26;token=36a1bb71-611d-4426-bda5-3585da1545d7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FwFZ68bUGIaUtZiQC9SMx%2Fmeta_field_step1.png?alt=media&#x26;token=a811d384-f0f4-40ae-be4c-8da30cdc7c2b" alt=""><figcaption></figcaption></figure>

* Click on **"Product"** block that you want to create metafield and then click on **"Add definition"** to create new metafield.

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FTF0vdoE38wBn31dJtkff%2Fmeta_field_step2.png?alt=media&#x26;token=6e10886f-b012-4413-943c-f0fd00428a4e" alt=""><figcaption></figcaption></figure>

* Add the desired name and select type of metafield.
* For custom badge copy "Namespace and key" ex:- food\_type
* For **custom text** use single line text and then click on **"Save"**
* For **countdown timer** use date type and then click on **"Save"**

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FC8rbSLNvefxRKNeury8t%2Fmetafield_step3.png?alt=media&#x26;token=559e658d-5b2e-4949-89d9-698c37f06b13" alt=""><figcaption></figcaption></figure>

* Now go to the product and select any one product that you want to fill metafield data.

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FXBMOWTIYP88ZDAC7jV9M%2Fmetafield_admin.png?alt=media&#x26;token=fba858a5-b426-48d2-bf53-6b4dbf684494" alt=""><figcaption></figcaption></figure>

Now you can see **food\_type** data **"Veg"** to that product. here created your metafield.

Below screenshot for type date. Select date you want to set when offer ends.

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FJ2zuzrWWtRsvAo2oaqLX%2Fmetafield_step6.png?alt=media&#x26;token=b7d3e7ad-6366-496b-b1e5-2a9b9a772aae" alt=""><figcaption></figcaption></figure>

If you have to show this text as a custom badge then follow below step also.

* Add metafield namespace or key name to the label metafield text block, check below:

<figure><img src="https://697656745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5NvthjEku1DrzU4mKb74%2Fuploads%2FTIiqMaSQK4UMYrjJRZh9%2Fmetafield_food.png?alt=media&#x26;token=31f2076d-c1e5-4165-b147-194b9c77ebe5" alt=""><figcaption></figcaption></figure>

Your text dairy will be print as a custom badge.
