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
- Go to Settings → Metafields.
- For each owner (Product, Variant, Order, Customer, Shop) click Select and tick the definitions you want. Give any of them a label.
- 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 theparse_jsonfilter.
Only the metafields you selected are fetched for each document.
Was this guide missing something? Tell us and we will fix it.
Contact Us