Skip to content
Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🧩Show Badges Product Metafields

🔎 What Are Shopify Product Metafields?

"Shopify metafields let you store additional, specialized information about your products—beyond what's available in the standard admin fields. They’re useful for showing things like material composition, potency, size details, or ingredient breakdowns."

⇒ DECO uses product metafields to generate dynamic labels and badges automatically—so all using the same design—just powered by different metafield values.

🗂️ Common Use Cases

1. Show Values Of Product Meta Field Dynamically

🌿 Cannabis Products

  • Show THCa flower potency or strain type on product badges

  • Display CBD/THC ratios dynamically

🕯️ Handmade Goods

  • Highlight soy wax percentage for candles

2. Show Exact Values Of Product Meta Field

🎀 Skincare Products

  • Display the exact skin type that the product suits

  • Based on what's written in-app

✅ Preparations

Before starting, you need:

Supported metafield types: single line text, list of single line text, integer, decimal, date, date and time, true or false (boolean), rating, money, URL, dimension, volume, weight. Metafields of other types won't appear in the list.

For example:

✨Step-by-step Setup

We'll walk through two use cases:

  1. Show dynamic metafield value if it exists

  2. Show specific metafield values only

🔁 Shared Steps for Both Use Cases

🔹 Step 1: Create or Select Badge

  • Open DECO app >> Navigate to: Label & Badge then:

→ If you don't have any badges yet: Click "Create badge" >> Choose to create a new Text Badge

→ If you already have badge(s): Click the pencil icon to edit an existing badge

This badge will act as a dynamic template using metafield data

🔹 Step 2: Connect Metafield with AutoText

  • Go to Badge Content → Click AutoText

  • In the "Choose AutoText type" pop-up, open the Others tab & choose: {PRODUCT_METAFIELD}

  • Then the list "Choose a specific metafield" will appear, pick one metafield >> Click "Add AutoText". The app inserts it into your badge text as {metafield[namespace.key]}.

List-type metafields can't be inserted as AutoText. If your store has no supported metafields, you'll see "No specific metafields found".

🎯 Use Case 1: Show Values Of Product Meta Field Dynamically

🔹 Step 3: Add Product Metafield

  • Move to the "Products" tab to select the metafield condition

  • Choose "Products matching conditions" >> In the Advanced group, tick "Metafields" >> Click "Add metafields" >> Then, in the "Metafield list" pop-up, choose the same metafield name as you selected in the last step >> Hit on "Select" button

  • After selecting your product metafield key >> Choose the option: "Exist"

🔹 Step 4: Preview & Verify

  • The app will automatically scan your products and detect which ones contain the keywords related to the metafield key you selected. 👉 For those products, it will display the corresponding value on the badge.

Example:

  • Metafield Key: care instruction

  • Condition: Exist

→ In this case, any product that includes data in the "care instruction" metafield will automatically show a badge with that value. (See the image below for a visual example.)

🎲 Use Case 2: Show Exact Values Of Product Meta Field

🔹 Step 3: Add Product Metafield

  • Move to the "Products" tab to select the metafield condition

  • Choose "Products matching conditions" >> In the Advanced group, tick "Metafields" >> Click "Add metafields" >> Then, in the "Metafield list" pop-up, choose the same metafield name as you selected in the last step >> Hit on "Select" button

  • Choose the option: "Match" >> Type in the Product metafield Value in the white box

For example:

🔹 Step 4: Preview & Verify

  • The app will automatically find products that have the exact metafield value you entered.

👉 Then show that value on the badge for those products.

Example:

  • Metafield Key: care instruction

  • Value: sunlight prefer

  • Condition: Match

→ In this case, any product(s) that include the metafield value "sunlight prefer" will automatically show a badge with that value. 🖼️ (See image below for example)

❗ Quick Troubleshooting

  • "No data" → Double-check whether those products have the Product Metafield Value assigned yet OR make sure the metafield key selected in AutoText matches the one added in the Metafield section (under the Products tab).

  • No display → Notice Uppercase/ Lowercase letters (e.g., Linen ≠ linen)

For the option "Exist" → Only type the product metafield KEY

While with the "Match" → Only type the product metafield VALUE

📞 Need Help?

If you’re stuck or need our experts to check your settings:

👉 Contact directly with the live-chat DECO Support team and include:

  • Your badge name

  • Screenshots of your Shopify metafield setup

  • An example link should have the badge to display on your website

Last updated