Product review
The product reviews object has the following attributes:
product.reviews
Returns an array of the reviews left on the product.
{% for review in product.reviews %} {{ review.name }} {{ review.content }} {{ review.rating }} {% endfor %}
returns...
Joe Bloggs These trainers are amazing 4
review.name
Returns the name of the author of the review.review.content
Returns the content of the review.
review.rating
Returns the rating given by the author (the maximum value is 5).
product.rating
Returns the average rating of the product (an integer).
product.rating(true)
Returns the average rating of the product (to one decimal place).