Skip to Content

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

id

Returns the id.

name

Returns the name of the reviewer.

customer

Returns the customer or null.

title

Returns the title.

review

Returns the review.

rating

Returns the rating.

max_rating

Returns the maximum rating value.

created_at

Returns the date when this review was created.

updated_at

Returns the date when this review was updated.