# Metafield

**Metafields**: Custom fields to store additional information about products, collections, customers, orders, etc.How to Add Metafields:

### Why Use Recommended Products? <a href="#why-use-recommended-products" id="why-use-recommended-products"></a>

{% hint style="success" %}

* **Log in** to Shopify Admin.
* Click **Settings** in the left-hand menu.
* Select **Settings > Custom data > select any metafield Eg:(Products) > Add definitions**
  {% endhint %}

<figure><img src="https://content.gitbook.com/content/CkbgCPuuRpRviXO4pWLq/blobs/Bo0wgUlpHnfiAZlWeRpF/metafield.jpg" alt=""><figcaption></figcaption></figure>

### Steps to Create a New Metafield Definition: <a href="#steps-to-create-a-new-metafield-definition" id="steps-to-create-a-new-metafield-definition"></a>

{% hint style="success" %}

* Click **Add Definition**.
* Enter a **Name** (e.g., "deal\_timer").
* Select a **Namespace & Key** (e.g., `custom.deal_timer`).
* Choose a **Type** (e.g.,date and time) and set minimum and maxmium value
* Click **save**
  {% endhint %}

<figure><img src="https://content.gitbook.com/content/CkbgCPuuRpRviXO4pWLq/blobs/nbRM3HYyQ3qcLjlAmpKm/metafield-01.jpg" alt=""><figcaption></figcaption></figure>

#### Adding and Using Metafields in Shopify <a href="#adding-and-using-metafields-in-shopify" id="adding-and-using-metafields-in-shopify"></a>

{% hint style="success" %}

* Go to **Products** in the Shopify Admin.
* Select a **Product** and scroll down to the **Metafields** section.
* Click **Add Value** and enter the required information.
* Click **Save**.
  {% endhint %}

#### Display Metafields on Product Pages <a href="#display-metafields-on-product-pages" id="display-metafields-on-product-pages"></a>

{% hint style="success" %}

* **Go to** Shopify Admin > **Online Store > Themes**.
* Click **Customize** on your active theme.
* Enable product deal timer
* It will be visible in the products
  {% endhint %}

<figure><img src="https://content.gitbook.com/content/CkbgCPuuRpRviXO4pWLq/blobs/gFH3SPSEOWi9ho7dtIqh/meta.png" alt=""><figcaption></figcaption></figure>
