# Create Required Metafields

You can read more about metafields here: [link](https://help.shopify.com/en/manual/custom-data/metafields)

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

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add metafields as follow:
   1. **Countdown timer.**
   2. **Custom product badge.**
   3. **External/Affiliate.**
   4. **Short description.**
      {% endhint %}

## 1. **Countdown timer**

{% hint style="success" %}

* Name: **Countdown timer**
* Namespace and key: **custom.countdown\_timer**
* Content type: **Date and time**
  {% endhint %}

<figure><img src="/files/sVIhcxMtdVJJ8QwE45A1" alt="" width="563"><figcaption></figcaption></figure>

\
**In product :**

<figure><img src="/files/5GRDjLxRtNVzsz2qIlPS" alt="" width="548"><figcaption></figcaption></figure>

**Result:**

<figure><img src="/files/EJoWs2WVFqOHBrV0zkJc" alt=""><figcaption></figcaption></figure>

## 2. Custom product badge

{% hint style="success" %}

* Name: **Custom product badge**
* Namespace and key: **custom.custom\_product\_badge**
* Type: **Single line text - One value**
  {% endhint %}

<figure><img src="/files/flvNlS2aWDCVT7Buvvc1" alt="" width="563"><figcaption></figcaption></figure>

* **In product:**

<figure><img src="/files/YtrmwBPtUpL5OpH7SeI3" alt="" width="551"><figcaption></figcaption></figure>

* **Result:**

<figure><img src="/files/xOIGuMsMqwNdLCf4O0cV" alt=""><figcaption></figcaption></figure>

## 3. External/Affiliate

{% 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 2 fields as bellow:

**-** Name: **External/Affiliate product**

\- Field 1:

\* Type: **URL**

\* Name: **External Link**

\- Field 2:

\* Type: **Single line text**

\* Name: **Button Text**
{% endhint %}

<figure><img src="/files/CmicFgm2gsWFPScpYuT5" alt="" width="563"><figcaption></figcaption></figure>

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

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

   \- Name: **External/Affiliate**

   \- Type: **Mixed reference**

   \- Validation: **External/Affiliate**

   \- Namespace and key: **custom.external\_affiliate**
3. Setup metafield for a product and you can see the result.
   {% endhint %}

<figure><img src="/files/Wqygii7fgSRDv0LlV3yC" alt="" width="563"><figcaption></figcaption></figure>

**In product:**

* Add new entry:

<figure><img src="/files/EwkwfCrYsCbtuVQRYrr4" alt="" width="549"><figcaption></figcaption></figure>

<figure><img src="/files/8dLPIyK69xM0B6Msehq6" alt="" width="563"><figcaption></figcaption></figure>

* Choose and save:

<figure><img src="/files/Cy6J9VuL3TbZFeGyvlKm" alt="" width="512"><figcaption></figcaption></figure>

\
**Result:** Auto change to External/Affiliate button

<figure><img src="/files/KhY1J3POOI3ZI92sGC4z" alt=""><figcaption></figcaption></figure>

## 4. Short description

{% hint style="success" %}

* Name: **Short description**
* Namespace and key: **custom.short\_description**
* Type: **Single line text - One value**
  {% endhint %}

<figure><img src="/files/JfA4HMOtfbVDnMxUdAuE" alt="" width="563"><figcaption></figcaption></figure>

**In product:**

<figure><img src="/files/iGjhSRKh6N2WgQCajrr7" alt=""><figcaption></figcaption></figure>

**Result:**

<figure><img src="/files/nkPNPWMmm38sOGfkGeWC" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nextsky.gitbook.io/agile-theme/theme-installation/create-required-metafields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
