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 Metafields in Shopify?
  • 2. What You Can Do with Metafields:
  • 3. How to Create and Use Product Metafields:
  • 4. Using Metafields to Create Display Conditions for Labels/Badges
  1. FAQs

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

PreviousHow to Use Product Metafields to Customize Label/Badge Display?NextHow to Use Variant Metafields to Customize Label/Badge Display

Last updated 10 days ago

1. What is Metafields in Shopify?

Metafields in Shopify allow you to save specialized information that isn't typically captured in the Shopify admin. They can be used to customize the functionality and appearance of your store. Here’s a quick overview of how to use metafields.

2. What You Can Do with Metafields:

  • Add Custom Information:

Store details like product specifications, care instructions, or any other relevant data that enhances your product pages.

  • Display on Storefront:

You can choose to display metafields on your online store, making it easier for customers to find important information.

  • Internal Tracking:

Use metafields for internal purposes, such as tracking product details or customer preferences.

3. How to Create and Use Product Metafields:

  1. Create a Product Metafield Definition:

    1. Go to your Shopify admin > Settings > Custom data > Product. Here, you can add a new definition for your metafield.

    2. Click Add definition. Enter a Name and a Namespace and Key for your metafield (e.g. Origin, custom).

    3. Select the appropriate data type.

    4. Select the number of values for the metafield.

      There are two options:

      • One value: If you select this option, in Step 2 (Add value), you can only enter a single value.

      • List of values: If you select this option, in Step 2 (Add value), you will be able to enter multiple values.

    5. Assign to specific categories (Optional) . This allows the metafield to appear only on products belonging to certain categories.

    6. Add validation rules (Optional). Use validation to limit accepted values (e.g. only allow numbers from 1 to 5).

    7. Click Save

  2. Add Values:

    1. One value

      After creating a definition, you can add values to your metafields for specific products.

    2. List of values

      If you have defined the metafield as a list of values, you can enter multiple values at this step by clicking the Add item button.

đź’ˇ Tip: Variant metafields are created similarly to product metafields. Just make sure to select Variant as the resource type before defining your metafield.

4. Using Metafields to Create Display Conditions for Labels/Badges

You can use metafields as a condition to determine which products will display labels or badges. With the BSS: Product Labels & Badges app, you can easily set these conditions based on the metafield values for your products.

For more details on how to use metafields as conditions for displaying labels/badges, check out the following article: How to Use Product Metafields to Customize Label/Badge Display?

Create variant metafields