Skip to main content

rating

Information for a rating type metafield.

PropertiesTypeDescription
scale_maxstringThe maximum value of the rating scale.
scale_minstringThe minimum value of the rating scale.
valuenumberThe rating value.
Object
{
"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:

Code
{{ product.metafields.custom.review_score.value.value }} / {{ product.metafields.custom.review_score.value.scale_max }}
Output
4 / 10.0