How to access product metafields in a theme? 🔍

### Explanation To access metafields in Liquid templates: 1. Use the format `object.metafields.namespace.key` 2. Example: `{{ product.metafields.custom.ingredients }}` 3. Metafields must be defined in theme settings first Reference: [Shopify Metafields in Themes](https://shopify.dev/docs/themes/architecture/templates/product)

Answer Options:

  • {{ product.metafields }}
  • {{ product.metafields.namespace.key }}
  • {{ product.meta_fields.namespace.key }}
  • {{ product.get_metafield('namespace', 'key') }}
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]