Skip to content

Metafields

Pick which Shopify metafield definitions to expose to templates, per owner type, and add unstructured ones by namespace and key.

EnterpriseUpdated 2026-10-18

Selecting metafields

  1. Go to Settings → Metafields.
  2. For each owner (Product, Variant, Order, Customer, Shop) click Select and tick the definitions you want. Give any of them a label.
  3. For a metafield without a definition use Add manually with its namespace and key.

Using them

  • Add a Metafields block to a template (order, customer or shop metafields, stacked).
  • In the Line Items block switch on product and variant metafields per line.
  • In Code mode: {{ order.metafields.namespace.key }}, {{ line_item.product.metafields.namespace.key }}. JSON values can be parsed with the parse_json filter.

Only the metafields you selected are fetched for each document.

Was this guide missing something? Tell us and we will fix it.

Contact Us