# 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FDidHNRkTqjKXRzuI3gWa%2Fscreencapture-admin-shopify-store-512e36-7c-settings-custom-data-2024-06-15-14_45_26.png?alt=media&#x26;token=3fdf5338-227f-4885-a080-43b330c2a691" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FFE0DCbZPd4RgHHZ5ucgN%2Fscreencapture-admin-shopify-store-512e36-7c-settings-custom-data-product-metafields-2024-06-15-14_46_28.png?alt=media&#x26;token=e747adf4-f154-4089-b0d2-a562e1b8fd2c" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FXjZxUl0UL9LenlKrecgv%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_05_57.jpg?alt=media&#x26;token=4396a8eb-0ee7-452f-a28b-d561e65b3e41" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FIZ6Zj5uGtzL0afxgdEmH%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_06_40.jpg?alt=media&#x26;token=40ea3df5-4b18-452b-83bc-01e7db2e4763" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FAfiWDNfrc3n4gB8x69ZZ%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_07_15.jpg?alt=media&#x26;token=7f030b39-956d-4c08-b535-3b466634f58f" alt=""><figcaption></figcaption></figure>

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

Besides these crucial metafields, there are five 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fz9RZRcg8uiqIWSMXu0yO%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-2024-06-15-15_07_45.jpg?alt=media&#x26;token=f4e4dd48-5565-4d09-b426-3b342953d987" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FLGOIkRd9DAMdLSwHgzTw%2FScreenshot%202024-06-15%20151235.png?alt=media&#x26;token=ad69f1fc-7847-48e8-93a2-c1e0282a7c6d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2F1AX6UI4jgZN7kp4YXsa1%2FScreenshot%202024-06-15%20151314.png?alt=media&#x26;token=cef724ff-05a1-41d8-a1eb-6039a96d7a7a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FuyZoPRrynClIsSb4SRHn%2FScreenshot%202024-06-15%20151326.png?alt=media&#x26;token=446c7d2b-ef7d-4355-9780-a34629d07df2" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2F2IS3cNyJv1JEwoQ0VufX%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_17_30.jpg?alt=media&#x26;token=b63a69c7-c080-4b4a-9c00-1e57beba6c6e" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fgn7qQUXUiFZtiCT8oBga%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_19_26.jpg?alt=media&#x26;token=a023785f-bb1d-4baf-9acf-ab2bb0950eca" 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.sub\_collections**
   * Content type: **Collection - List of collections**
4. Click **Save**
{% endhint %}

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2F1OaR9CpcLJllELpbWEag%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_22_12.jpg?alt=media&#x26;token=1322c976-fe60-4e8c-b425-22bac490ce71" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FDU4wcSjoUWLulPyYedq5%2Fimage.png?alt=media&#x26;token=768686ff-eb04-45d9-ad3d-75aa625dbc63" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2F2jQcx0A7y6VennRPrZQn%2Fimage.png?alt=media&#x26;token=a70e3d73-9049-485b-b4bf-7ea0a5078f22" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fm1iU5ivMrV4BhnGtgYJw%2Fimage.png?alt=media&#x26;token=9e56dd97-42d7-4ea2-ba87-027c4b214ae7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2FxnovX1bL4VVnbjuxTd2g%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-metaobjects-create-2024-06-15-15_25_24.jpg?alt=media&#x26;token=9239b2b0-a1b5-400d-a316-3ad69d6a9562" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fru9s9n6cy0FQdbV0HQ7m%2Fimage.png?alt=media&#x26;token=533c95fa-88e3-48cf-bfb9-ba2027b07c34" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fme1ju7dS31DsGJQG55kL%2Fimage.png?alt=media&#x26;token=7feda6fd-0f74-4764-9697-e1ee2b927c20" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2F8kpaq05Vm12f12JyMA96%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_29_47.jpg?alt=media&#x26;token=1ff84719-a35b-4073-bee0-f252a78a2334" 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="https://1887672278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGyYuzVsob5kZQHtG5da3%2Fuploads%2Fu1Fj2xJPzLvtmnGAsaMl%2Fscreencapture-admin-shopify-store-newclone-settings-custom-data-product-metafields-create-2024-06-15-15_32_37.jpg?alt=media&#x26;token=25605724-e097-4709-b20d-66def89b3d8a" alt=""><figcaption></figcaption></figure>
