All Collections
E-mails
Design of an email
Personalize an email
Liquid trick: showing your product reviews in your email
Liquid trick: showing your product reviews in your email

Do you want to show your product reviews in your email in addition to your product description? Then read this article

Carola avatar
Written by Carola
Updated over a week ago

Want to include your product reviews in your e-mail? You can do that with liquid. To do so, you need to add liquid code to your block.

1. Show all reviews

Do you want to show all your reviews for a certain product? Then use the following liquid:

{% for review in product.reviews %}

{{ review.name }}

{% endfor %}

In a dynamic product block, this looks like this:

Want to show your reviews in a regular block of products? This looks like this:

2. Show the very first review

Do you want to show only the very first posted review? That is also possible. To do so, use the following liquid code:

{{ product.reviews.first.name }}

In a dynamic product block, this looks like this:

Want to show your reviews in a regular product block? This looks like this:

3. Show the most recent (last) review

Do you want to show only the latest review? That is also possible. To do so, use the following liquid code:

{{ product.reviews.last.name }}

4. Show the star rating

Do you want to show only the stars by which your customers rated the product? To do so, use the following liquid code:

{{ % for review in product.reviews % }}

{{ % if review.score == 5 % }}

⭐⭐⭐⭐⭐

{{ % endif % }}

The result of this is the following:

This liquid can be run through for 4 stars, 3 stars, 2 stars etc.

5. Add the liquid to your corporate identity

Do you always want to show reviews of your products? Then it is useful to add your liquid to your house style. Go to 'settings' and then 'corporate identity'. Click an element you want to adjust and add the liquid code.

Good luck! 🙌

Did this answer your question?