rating
Information for a rating type metafield.
| Properties | Type | Description |
|---|---|---|
scale_max | string | The maximum value of the rating scale. |
scale_min | string | The minimum value of the rating scale. |
value | number | The rating value. |
{
"scale_max": "10.0",
"scale_min": "0.0",
"value": 4.5
}
This object is returned by a rating metafield. Access it through the metafield's value:
{{ product.metafields.custom.review_score.value.value }} / {{ product.metafields.custom.review_score.value.scale_max }}
4 / 10.0