> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.devit.software/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Product metafield

# ${color}[#204a87](Product Metafield)

${color}[#3465a4](In this article:)
* [What are product Metafields](#1-what-are-product-metafields)
* [How to create Metafields](#1-how-to-create-metafields)
* [How to use Product Metafield](#1-how-to-use-product-metadata)
* [Supported operators](#1-supported-operators)
* [Examples of scenarios](#1-examples-of-scenarios)

# ✔️ What Are Product Metafields

**Product metafields in Shopify** are custom fields that let you store additional information about your products beyond the standard settings. They can be used to add details like specifications, materials, size guides, or **custom labels**. 

The Product Metafield functionality is used in Lably for:

* dynamic display of label/badge text;
* as a condition for displaying a label/badge.

# ✔️ How To Create Metafields

Follow this path to create custom metafields in Shopify:

1. **Settings → Metafields and metaobjects → Products**

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/metafields-products_1gha05r.png)

2. Click **Add definition** in the top-right corner and set the required values (Name and Type) and click **Save** after that.

For example, we’ve created a Limited edition metafield with texts that will be dynamically changed on the label.

* **Name:** Limited edition
* **Key:** limited_edition

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/limited-edition_igahex.png)

| In the Type section you can also choose a metafield type from the available list: Single line text, Multi line text, Integer, Date, Date and Time.

3. Go to the **Products** section in your store -> open the product you want to display with label -> in the **Metafields section** set the value for the Limited edition metafield.

* **Values on products:**
    * Last Chance
    * Exclusive
    * Limited Drop

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/products-metafield-meaning_1yro9nn.png)

4. **Save** your changes.

All created metafields are stored at the store level and are available for use in Lably Builder in the Dynamic value list modal.

# ✔️ How To Use Product Metafield

To add a dynamic text to the label, follow these steps:

1. Go to the app admin and open the label you want to customize.
2. Click on **{}** near the Label field and click on **Product Metafield**. 

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/text-label_1tgw6xh.png)

3. Select the relevant value from the list.
4. Click **Show conditions** in the banner below.
5. Click on **Product Metafield** -> select the relevant matcher and set the value.

![](https://storage.crisp.chat/users/helpdesk/website/-/3/2/7/1/3271b421d88bd400/select-matcher_1v84v8.png)

6. **Save** it in the top-right corner.

After that the label text will be equal to the metafield value on a specific product.

# ✔️ Supported Operators

There are two operators supported for Product Metafield:

* **Exists** (shows label if metafield has any value).
* **Equal to** (shows label only when metafield has a specific value).

You can also add a specific metafield value in the provided field.

# ✔️ Examples of Scenarios

### Dynamic label + Equal to

**Setup:**

* Metafield: Limited edition
* Operator: Equal to
* Value: Last Chance

**Result:** The label will appear only on products where the “Limited edition” metafield equals “Last Chance”. The label text will be dynamic and will also automatically display “Last Chance”.

### Static label + Product Metafield condition

Display a custom label based on specific product data.

**Setup:**

* Label text: Discount 
* Condition:
–	Type: Product Metafield 
–	Key: Limited edition 
–	Operator: Equal to 
–	Value: Last Chance 

**Result:** The label will show “Discount”, but only on products where the “Limited edition” metafield is set to “Last Chance.”
