BSS Product Labels & Badges
  • About app
  • How to create a Label?
  • How to create a Badge?
  • How to create a Label Group?
  • Integration
    • LAI Product Review Integration Guide
  • FAQs
    • How to Provide Your Store's Collaborator Code
    • How to Approve Our Collaborator Request
    • How to create a text label/badge with custom style?
    • How to redirect customers after clicking on label/badge
    • What to do when some of the labels are appearing in places they should not?
    • Why are the changes of labels not applied on my products?
    • How to convert the language in the label or badge on your on your multilingual site?
    • How to add 2 labels at the same time on certain products?
    • How to show labels beautifully on the desktop and mobile?
    • How to change colors of the label?
    • How to exclude the label from unexpected page(s) or block(s)?
    • How to remove leftover code of the Product Labels Pro app?
    • How to show badges out of product images?
    • How to show label/badge when product quantity = 0?
    • How to add the Sold Out label automatically?
    • Why doesn’t the label/badge appear when the product is out of stock?
    • Why can't I see the badge on the product image?
    • Why doesn't the app work?
    • Why are the labels/badges not visible constantly on the page(s)?
    • Why is the label/badge duplicated?
    • How to remove label automatically?
    • How to apply Labels/Badges based on Product/Customer tags?
    • How to show text hover effect on label/badge?
    • How to create labels for product variants?
    • Why after changing theme, labels/badges aren't displayed anymore.
    • Can I add multiple badges on a product?
    • What is Inventory Badge?
    • Can I exclude specific customers from seeing my badge?
    • Can I choose who can see my badge?
    • Can I set the badge below the Buy it now button?
    • How to change the effect the labels/badges show up in the online store?
    • How can I customize the position of badges?
    • How to Display Labels/Badges Only on Mobile Devices
    • How to display your inventory quantity on text labels?
    • Countdown Timer for Label/Badge
    • How to Use Product Metafields to Customize Label/Badge Display?
    • How to Create Product Metafields in Shopify: A Step-by-Step Guide
    • How to Use Variant Metafields to Customize Label/Badge Display
    • How to Create a Label or Badge that Shows Product Metafield Content Automatically
    • Using a List of Values Metafield to Display Labels/Badges
    • Display a Badge Next to the Product Price
  • General
    • How to enable app embed block?
    • Can I have a trial for BSS Product Labels & Badges app?
    • How to translate the app interface into other languages?
Powered by GitBook
On this page
  • 1. What is a Variant Metafield?
  • 2. Why Use Variant Metafields for Labels/Badges Display?
  • 3. Step-by-step Guide
  • 1️⃣ Step 1: Choose Display Condition Type
  • 2️⃣ Step 2: Choose the Metafield You Want to Use
  • 3️⃣ Step 3: Enter the Value You Want to Match
  • 4️⃣ Step 4: Choose Matching Option
  • 5️⃣ Step 5: Save and Preview on Your Storefront
  • 4. Pro Tips
  1. FAQs

How to Use Variant Metafields to Customize Label/Badge Display

PreviousHow to Create Product Metafields in Shopify: A Step-by-Step GuideNextHow to Create a Label or Badge that Shows Product Metafield Content Automatically

Last updated 1 month ago

In addition to product-level conditions, the BSS Product Labels & Badges app now supports variant metafields as a condition to display labels or badges. This allows you to show the right labels/badges for specific variants of a product based on custom data.

1. What is a Variant Metafield?

Variant metafields are a form of custom data attached to individual product variants in Shopify. While product metafields apply to the entire product, variant metafields allow you to store and target unique information per variant.

Variant metafields are created similarly to product metafields. Just make sure to select Variant as the resource type before defining your metafield.

Learn more: How to Create Product Metafields in Shopify: A Step-by-Step Guide

2. Why Use Variant Metafields for Labels/Badges Display?

With variant metafields, you can ensure that a label/badge only shows up when a specific variant meets a metafield condition — giving you even more control and personalization across your storefront.

3. Step-by-step Guide

1️⃣ Step 1: Choose Display Condition Type

Go to Product Conditions > Select With specific Metafield(s)

2️⃣ Step 2: Choose the Metafield You Want to Use

  • Click Add Metafield

  • Choose Metafield type = Variant Metafield

  • Choose a Metafield from your existing Shopify Metafield list.

  • Our app supports many data types, including:

    • Single line text, Multi-line text

    • Integer, Decimal, Date and Time, Date

    • Dimension, Volume, Weight, True or False, Color (code)

    • Rating, Money

3️⃣ Step 3: Enter the Value You Want to Match

Enter the value you want to match for the Metafield. The app will then find products with matching values and display the corresponding label/badge

Examples:

  • Variant Metafield origin = organic: The label/badge will appear on variants where the origin metafield is set to organic

  • Variant Metafield rating = 5: The label/badge will appear on variants where the rating metafield is set to 5 .

4️⃣ Step 4: Choose Matching Option

  • Match all: Variant must match all Variant Metafield conditions to display the label/badge.

  • Match one: Variant only needs to match one Variant Metafield condition to display the label/badge.

5️⃣ Step 5: Save and Preview on Your Storefront

4. Pro Tips

  • Be sure to enter values correctly for your Metafields.

  • This feature is available only on the Platinum plan.

  • Ensure your variant has the Metafield with the value you set.

  • Labels/Badges with Variant Metafield conditions will be displayed on the product card if any variant of the product matches the condition.

  • You can also use product metafields as conditions to display labels or badges: How to Use Product Metafields to Customize Label/Badge Display?

Select Variant Metafields
Enter the value you want to match
Matching Options