# Create required metafields

## Required metafields

For optimal functionality of our theme, there are three crucial metafields that you need to set up: **Product Bought Together**, **Short Description**, and **Countdown Timer**. These metafields are essential in enhancing the shopping experience and boosting sales on your Shopify store.

1. **Product Bought Together**: This metafield allows you to display related products that are frequently purchased together, encouraging customers to add more items to their cart and increasing the average order value.
2. **Short Description**: Utilize this metafield to provide a concise and compelling summary of your product, giving customers quick insights into the key features and benefits, which can help drive quicker purchasing decisions.
3. **Countdown Timer**: Create a sense of urgency with the Countdown Timer metafield. Display a timer for sales, promotions, or product availability, motivating customers to act fast and complete their purchases before the offer expires.

{% hint style="success" %}
**Steps:**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add 3 metafields as follow:
   1. **Product Bought Together**
   2. **Short Description**
   3. **Countdown Timer**
      {% endhint %}

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

<figure><img src="/files/3NOukBaRPIhgdj94xc2x" alt=""><figcaption></figcaption></figure>

### 1. Product Bought Together <a href="#id-1.-product-bought-together" id="id-1.-product-bought-together"></a>

{% hint style="success" %}

* Name: **Product Bought Together**
* Namespace and key: **custom.bought\_together**
* Content type: **Product - List of products**
  {% endhint %}

<figure><img src="/files/1WHIM2tWhBZiqP87KdFX" alt=""><figcaption></figcaption></figure>

### 2. Short Description <a href="#id-2.-short-description" id="id-2.-short-description"></a>

{% hint style="success" %}

* Name: **Short Description**
* Namespace and key: **custom.short\_description**
* Content type: **Multi-line text**
  {% endhint %}

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

### 3. Countdown Timer <a href="#id-3.-countdown-timer" id="id-3.-countdown-timer"></a>

{% hint style="success" %}

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

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

## Optional metafields <a href="#id-4.-external-affiliate" id="id-4.-external-affiliate"></a>

Besides these crucial metafields, there are six optional metafields that can further enhance the functionality and customization of your store:

### 1. External/Affiliate <a href="#id-4.-external-affiliate" id="id-4.-external-affiliate"></a>

**External/Affiliate**: Link to external or affiliate products directly from your store. This metafield is perfect for merchants who partner with external vendors or participate in affiliate marketing programs, making it easy to integrate and promote third-party products.

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

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**
   * Field 1:
     * Type: **URL**
     * Name: **External Link**
   * Field 2:
     * Type: **Single line text**
     * Name: **Button Text**
4. Click **Save**
   {% endhint %}

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

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

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

<figure><img src="/files/6611ymJCwx2GRmwM7Q60" alt=""><figcaption></figcaption></figure>

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

1. Back to **Custom data -> Metafields -> Products**
2. Add a metafield as bellow:
   * Name: **External/Affiliate**
   * Type: **Mixed reference**
   * Validation: **External/Affiliate**
     {% endhint %}

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

{% hint style="success" %}
**Step 3:** Close Setting and setup metafield for a product.
{% endhint %}

### 2. Product grouped <a href="#id-5.-product-grouped" id="id-5.-product-grouped"></a>

**Product Grouped**: Display a collection of related products together. This is ideal for showcasing product bundles or sets that can be purchased as a group, providing a more comprehensive shopping experience and encouraging higher average order values.

{% 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 bellow:
   * Name: **Product grouped**
   * Namespace and key: **custom.product\_grouped**
   * Content type: **Product - List of products**
4. Click **Save**
   {% endhint %}

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

### 3. Sub collection <a href="#id-6.-sub-collection" id="id-6.-sub-collection"></a>

**Sub Collection**: Organize products into sub-collections within a main collection. This helps in managing large inventories and makes it easier for customers to navigate through different product categories, enhancing the overall shopping experience.

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

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Collections**
3. Add metafields as bellow:
   * Name: **Sub Collections**
   * Namespace and key: **custom.subcollection**
   * Content type: **Collection - List of collections**
4. Click **Save**
   {% endhint %}

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

### 4. Product information tab <a href="#id-7.-product-information-tab" id="id-7.-product-information-tab"></a>

**Product Information Tab**: Add detailed information tabs to your product pages. These tabs can be used to provide specifications, usage instructions, reviews, or any other relevant information that helps customers make informed purchasing decisions.

{% hint style="success" %}
Step 1:

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: **Information product tab**

\- Field 1:

\* Type: **Multi-line text**

\* Name: **Information Text**

\- Field 2:

\* Type: **Page**

\* Name: **Information in page**
{% endhint %}

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

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

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

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

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

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

**-** Name: **Information product tab**

\- Namespace and key: **custom.information\_product\_tab**

\- Type: **Metaobject - One entry**

\- Reference: **Information product tab**
{% endhint %}

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

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

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

{% hint style="success" %}
**Step 3:** Setup metafield for a product and you can see the result.

On Shopify homepage, go to Products and select the 'Information product tab' metafields to set the content you want to display for each product
{% endhint %}

{% hint style="info" %}
**Note:** Fill in one of the two fields: **Information Text** or **Information in page**
{% endhint %}

### 5. Custom product badge <a href="#id-8.-custom-product-badge" id="id-8.-custom-product-badge"></a>

**Custom Product Badge**: Highlight specific products with custom badges. Whether it's for new arrivals, best sellers, limited edition items, or special promotions, these badges draw attention to particular products and can help boost their visibility and sales.

{% hint style="success" %}
**Steps:**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add metafields as bellow:
   * Name: **Custom product badge**
   * Namespace and key: **custom.custom\_product\_badge**
   * Content type: **Single line text**
4. Click **Save**
   {% endhint %}

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

### 6. More colors

**More Colors:** When customers visit the product page, they will notice additional color or style options displayed prominently beneath the product title. This feature allows shoppers to easily explore all available variations of a product, making it simpler for them to find the exact color or style they desire. By offering a visual and accessible way to showcase product diversity, the "More Colors" feature helps boost customer engagement and increases the likelihood of a purchase.

{% hint style="success" %}
**Steps:**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add metafields as bellow:
   * Name: **More colors**
   * Namespace and key: **custom.more\_colors**
   * Content type: **Product - List of Products**
4. Click **Save**
   {% endhint %}

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

### 7. Custom Size Chart

This **Multi-line text** metafield type allows you to enter detailed size information, ensuring that customers have all the necessary details at their fingertips. Whether you need to include specific measurements, instructions, or additional notes, the multi-line text option provides ample space to accommodate comprehensive size charts, enhancing the shopping experience and helping customers make informed purchasing decisions.

{% hint style="success" %}
**Steps:**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add metafields as bellow:
   * Namespace and key (**obligatory**): **custom.size\_chart**
   * Content type: **Page - One page**
4. Click **Save**
   {% endhint %}

<figure><img src="/files/2fmpswNJGzoKk9J8s8Fp" alt=""><figcaption></figcaption></figure>

### 8. Image Variant Group

**Image Variant Group**: Display images that are related to the selected color variant. This allows customers to see variations in product appearance based on color selection directly on the product page.

{% hint style="success" %}
**Steps:**

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data** and select **Products**
3. Add metafields as bellow:
   * Namespace and key (**obligatory**): custom.use\_variants\_image\_group
   * Name: Use variants image group
   * Content type: True or False
4. Click **Save**
   {% endhint %}

<div><figure><img src="/files/Chiurz0sZO0Za9nMO70S" alt=""><figcaption></figcaption></figure> <figure><img src="/files/05WJzCwxc55oKkBBR7ME" alt=""><figcaption></figcaption></figure></div>


---

# 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/glozin-theme/get-started/custom-data/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.
