How to Create a Label or Badge that Shows Product Metafield Content Automatically
Last updated
Last updated
Suppose you have 100 products using the same metafield — with each product having a different value — and you want to display that value on a label or badge. In that case, you can easily do this with just one label, instead of creating 100 separate labels or manually setting up each product.
This guide will walk you through how to set this up using Metafield Variables.
To learn more about Shopify Metafields and how to set them up, check out this article: How to Create Product Metafields in Shopify: A Step-by-Step Guide
This feature applies to Text Label/Badge types that allow content customization.
This feature is only available on the Platinum Plan.
Step 1: Navigate to the editing interface of the Label/Badge Text you have created.
Step 2: Scroll down to the Label content section → click Add Variable → select Metafield.
Step 3: Choose the Metafield you want to use. The label/badge content will automatically pull the value from the Metafield of each product.
Step 4: Save the changes and check the display on your Storefront.
You can customize the font style and color of the Metafield content using the style settings available in the app.
You can use both Product Metafields and Variant Metafields.
If you use Variant Metafields, the label/badge will not display on the product card.
Metafield variable only works with metafields that have one value.