Product metafield
Product Metafield
In this article:
- What are product Metafields
- How to create Metafields
- How to use Product Metafield
- Supported operators
- 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:
- Settings → Metafields and metaobjects → Products

- 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

- 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

- 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:
- Go to the app admin and open the label you want to customize.
- Click on {} near the Label field and click on Product Metafield.

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

- 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.”
Updated on: 13/05/2026
Thank you!
