Page cover

🧩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:

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: Labels & Badges 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

circle-info

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 popping list, scroll down & choose: Product Metafields

  • Then a list of active meta fields will appear, check the box to select >> Click "Select" button to save the change.

🎯 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

  • Scroll to the Metafield >> Click + Add Metafield >> Then, 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: "Exists"

πŸ”Ή 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: Exists

β†’ 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

  • Scroll to the Metafield >> Click + Add Metafield >> Then, choose the same metafield name as you selected in the last step >> Hit on "Select" button

  • Choose the option: "Equal to" >> 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: Equal To

β†’ 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)

circle-info

For the option "Exists" β†’ Only type the product metafield KEY

While with the "Equal to" β†’ 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