Product metafields
Instant Commerce supports dynamically loading and showing Product and Product Variant metafields on Product Detail Pages (PDPs). With metafields it’s possible to show specialized information based on custom field definitions.
Set up metafields
You set up your metafields in Shopify or in a third-party integrated app.
If you add the metafields in Shopify, see Shopify's metafields documentation. Make sure you select the Expose this metafield to Storefront API requests option for metafields you want to use in Instant Commerce.
If you add your metafields through a third-party app, make sure you expose them to the Storefront API requests.
We currently support the following metafield content types: Date, Date and time, Number, Rating, URL, Text, True or false
If the metafields have already been filled in, you can still add a definition and expose the metafield.
Inserting metafields
When you've set up your metafields, they can be inserted in Storyblok on the product pages, or on the general product details template. Metafields can be added to the Details, Usps and Section fields.
To add a metafield, enter it like {{namespace.key}}
in the Content field. The namespace & key can be found in the definitions in Shopify, or in a third-party app if the metafields were added through there. The value of the metafield is automatically loaded from Shopify and shown in your storefront.