Display star rating for each product in the product list
Go to admin page > Sales channels > Online store > Themes.

Select the theme you want to display the Review widget > Edit code.

In theme editor, open file Snippets/card-product.liquid

Add code to the file Snippets/card-product.liquid
Copy the code below:
<div class="rh-rv-prod-featured" data-id="{{ card_product.id }}" data-avg-rating="{{ card_product.metafields.ratifyhub.widget.avg }}" data-total-rating="{{ card_product.metafields.ratifyhub.widget.total }}"></div>
Find the line with the same or similar code: {% render 'price', product: card_product, price_class: '' %}
and paste the copied code above it.

Save the changes.

Go to customize theme.

Select App embed > Enable "Review app code" > Save

The results.

Last updated