Dynamic Metafields allow you to display the value of any Shopify product metafield inside your Badges or Highlight Boxes. This makes it easy to showcase custom product information without manually updating each badge or highlight.
If you're already using Shopify metafields (or metafields created by another app), Prime can automatically fetch and display their values on your storefront.
Note: Dynamic Metafields are available for Pro plan and above users only.
How to Display a Shopify Metafield
Use the following dynamic data field format:
{{primebm.namespace.key}}
Replace:
namespacewith your Shopify metafield namespace.keywith your Shopify metafield key.
Example
Suppose your Shopify store contains the following product metafield:
| Namespace | Key | Value |
|---|---|---|
|
| Machine Wash Cold |
To display this value in a badge or highlight, use:
{{primebm.instructions.wash}}
The badge will automatically display:
Machine Wash Cold
Combine Dynamic Metafields with Display Rules
Dynamic Metafields become even more powerful when combined with Product Metafield Display Conditions.
Product Metafield Representations
| Metafield Type | Product Metafield Representation |
|---|---|
Product |
|
Collection |
|
Money |
|
Single Line Text |
|
Multi Line Text |
|
Rich Text |
|
Multi Line Text |
|
Validations |
|
Weight |
|
Volume |
|
Dimension |
|
Decimal |
|
Integer List |
|
Integer Single |
|
Single Line Text (List) |
|
File |
|
Date and Time |
|
Benefits
Using Dynamic Metafields helps you:
- Automatically display custom Shopify product information.
- Personalize badges and highlights for each product.
- Eliminate the need to manually update badge text.
- Keep product information accurate and synchronized with your Shopify metafields.
- Improve the shopping experience with richer product details.
Note:
- Dynamic Metafields are available for Pro plan and above users only.
- If your subscription is downgraded to a plan that does not support this feature, any badges or highlights using Dynamic Metafields will stop displaying until you upgrade again.
.