Review
The review
object describes a product review, including its content, rating, author, and related metadata.
Usage Example
{%- comment -%} List product reviews {%- endcomment -%}
<ul>
{% for review in product.reviews %}
<li>
<strong>{{ review.name }}</strong> rated {{ review.rating }}/{{ review.max_rating }}<br>
<em>{{ review.title }}</em><br>
<p>{{ review.review }}</p>
<small>Reviewed on {{ review.created_at | date: '%Y-%m-%d' }}</small>
</li>
{% endfor %}
</ul>
Properties
created_at
Returns the date when this review was created.
customer
Returns the customer who wrote the review, or null.
id
Returns the unique id for this review.
max_rating
Returns the maximum rating value.
name
Returns the name of the reviewer.
rating
Returns the rating given in the review.
review
Returns the review content.
title
Returns the title of the review.
updated_at
Returns the date when this review was updated.
Last updated on