This page explains how to mark up your product reviews so that Google can display rich results (previously known as rich snippets). You will need have to technical experience to add this code.

If your Shopify  theme is using JSON-LD method then please add this code below to that script:

{% assign ryviu = product.metafields.ryviu %}
{% if ryviu %}
{%- assign aggregateRating = ryviu.product_reviews_info | split: ";" -%}
  {%- assign r_avg = aggregateRating[1] | plus: 0 -%}
  {%- assign r_count = aggregateRating[0] | plus: 0 -%}
  {%- if r_count > 0 -%}  
    "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": "{{ r_avg }}",
            "reviewCount": "{{ r_count }}"
     },
      {%- endif -%}
{% endif %} 


If your Shopify theme is using MICRODATA then please add this  code to your product-template.liquid file

{% assign ryviu = product.metafields.ryviu %}
{% if ryviu %}
{%- assign aggregateRating = ryviu.product_reviews_info | split: ";" -%}
  {%- assign r_avg = aggregateRating[1] | plus: 0 -%}
  {%- assign r_count = aggregateRating[0] | plus: 0 -%}
  {%- if r_count > 0 -%}  
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
      <meta itemprop="ratingValue" content="{{ r_avg }}"/>
      <meta itemprop="ratingCount" content="{{ r_count }}"/>
    </div>
  {%- endif -%}
{% endif %}  

After that, you can check the result by adding your product link from here:
Structured Data Testing Tool

If you don't know how to add that code then please contact us via live chat so we can help.

All the best.

Ryviu team.

Did this answer your question?