Skip to main content

Review

Returns review attributes.

Example

{% for review in rental.reviews %}
<li>
{% assign rating = review.rating %}
{% render 'snippets/rating' %}
{{ 'rentals.show.by' | t }}
<strong>{{ review.name }}</strong>
</li>
{% endfor %}

Available attributes:

NameTypeDescription
commentStringreview's comment
country_codeStringreviewer's country_code
created_atDatereview's date
idIntegerreview's id
nameStringreviewer's name
ratingIntegerreview's rating. Maximum value is 5.
titleStringreview's title