Skip to content

metafield object ​

A metafield of a resource. The metafields property of a product, category, page, order or the store groups the metafields by namespace, then by key: product.metafields.<namespace>.<key>.

A namespace or key that does not exist is nil.

Properties ​


NameTypeDescription
valueanyThe metafield value
typestringThe metafield type
listbooleanWhether the value is a list of values
liquid
{% if product.metafields.reviews.rating %}
  <span>{{ product.metafields.reviews.rating.value }} / 5</span>
{% endif %}