Shopify Field types

Shopify Metafield definitions

Via your Shopify admin Settings » Custom data, you can optionally create a Metafield definition for a certain namespace + key combination. With a definition in place, the field can be referenced from within Shopify's Theme Customizer as a Dynamic data source and also be "pinned", making it easier to edit the Metafield values in context from your Shopify admin detail page.

ACF will automatically check if a field's data type matches the Shopify Metafield definition (for the namespace + key combination) and show either a green checkmark or a warning icon in the list of defined fields for a scope.

If you have defined a field where no Shopify Metafield definition exists, ACF will just show a grey checkmark to indicate that the field type is valid.

Metafields without definitions

Via your Shopify admin detail page, you can edit metafields regardless of whether a definition is in place or not (section Metafields » View all). For Metafields without a definition, Shopify will make an educated guess of each Metafield's content type.

Using Shopify Metafields from Liquid

Metafield values created using a "Shopify » ..." type do not return the value using the normal syntax in Liquid. Rather, these types return a Metafield object with two properties: type and value. The value property returns the actual value, like this:

<h3>{{ product.metafields.accentuate.subtitle.value }}</h3>

Repeatability

Transferability

Last updated