If you cannot see the stars review on your single product page and collection then refer to this instruction below:

  1. Login to Shopify admin, open Online Store > Themes
  2. In Live theme, click Actions, select Edit code
  3. Open file review-badge.liquid then add Ryviu snippet codes refer to this instruction below:

Add stars review for single product page:

Please add this code below under this line of text "<!-- INSERT [PRODUCT PAGE] REVIEW BADGE HERE -->"

<div class="review-widget">
<ryviu-widget-total
product_id="{{product.id}}"
handle="{{product.handle}}"
reviews_data="{{product.metafields.ryviu.product_reviews_info | escape }}">
</ryviu-widget-total>
</div>

Add stars review for products on collection page:

Please add this code below under this line of text "<!-- INSERT [PRODUCT GRID] REVIEW BADGE HERE -->"

<div class="ryviu-collection">
<ryviu-widget-total collection=1
product_id="{{product.id}}"
handle="{{product.handle}}"
reviews_data="{{product.metafields.ryviu.product_reviews_info | escape }}" >
</ryviu-widget-total>
</div>

The finished code will be like this:

<div class="review-badge">
{% if badge_template == "product" %}
<!-- INSERT [PRODUCT PAGE] REVIEW BADGE HERE -->

<!-- RYVIU APP :: WIDGET-TOTAL -->
<div class="review-widget">
<ryviu-widget-total reviews_data="{{product.metafields.ryviu.product_reviews_info | escape }}" product_id="{{product.id}}" handle="{{product.handle}}"></ryviu-widget-total>
</div>
<!-- RYVIU APP -->
{% elsif badge_template == "grid" %}
<!-- INSERT [PRODUCT GRID] REVIEW BADGE HERE -->

<div class="ryviu-collection">
<ryviu-widget-total collection=1 reviews_data="{{product.metafields.ryviu.product_reviews_info | escape }}" product_id="{{product.id}}" handle="{{product.handle}}"></ryviu-widget-total>
</div>

{% endif %}
</div>

All the best,

Ryviu team

Did this answer your question?