Are you an LLM? You can read better optimized documentation at /themes/objects/metafield.md for this page in Markdown format
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
| Name | Type | Description |
|---|---|---|
value | any | The metafield value |
type | string | The metafield type |
list | boolean | Whether the value is a list of values |
liquid
{% if product.metafields.reviews.rating %}
<span>{{ product.metafields.reviews.rating.value }} / 5</span>
{% endif %}1
2
3
2
3