Dynamic Product Metafields

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.

Screenshot 2026-07-02 153231.png

How to Display a Shopify Metafield

Use the following dynamic data field format:

{{primebm.namespace.key}}

Replace:

  • namespace with your Shopify metafield namespace.
  • key with your Shopify metafield key.

Example

Suppose your Shopify store contains the following product metafield:

NamespaceKeyValue

instructions

wash

Machine Wash Cold

To display this value in a badge or highlight, use:

{{primebm.instructions.wash}}

The badge will automatically display:

Machine Wash Cold

Screenshot 2026-07-02 153151.png

Combine Dynamic Metafields with Display Rules

Dynamic Metafields become even more powerful when combined with Product Metafield Display Conditions.

Screenshot 2026-07-02 153350.png

Product Metafield Representations

Metafield TypeProduct Metafield Representation

Product

{{ primebm.custom.product.value }}

Collection

{{ primebm.custom.collection.value }}

Money

{{ primebm.custom.price.value | money }}

Single Line Text

{{ primebm.custom.stock.value }}

Multi Line Text

{{ primebm.custom.specs.value | newline_to_br }}

Rich Text

{{ primebm.custom.rich_text | metafield_tag }}

Multi Line Text

{{ primebm.custom.alphanumeric.value }}

Validations

{{ primebm.custom.validation.value }}

Weight

{{ primebm.custom.product_weight.value }}

Volume

{{ primebm.custom.volume.value }}

Dimension

{{ primebm.custom.dimension.value }}

Decimal

{{ primebm.custom.price_in_decimal.value }}

Integer List

{{ primebm.custom.agelist.value | join:'<br>' }}

Integer Single

{{ primebm.custom.age.value }}

Single Line Text (List)

{{ primebm.custom.specifications_of_product.value | join:'<br>' }}

File

<a target="_blank" href="{{ primebm.custom.file.value.url }}">{{ primebm.custom.file.value.url | split:'/' | last | split:'?' | first }}</a>

Date and Time

{{ primebm.custom.datetimesingle.value | date: "%A, %B %d, %Y at %I:%M %p %Z" }}


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.

.