For the JSON
Code:
<mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0"> "aggregateRating": { "@type": "AggregateRating", "ratingValue": "&mvt:product:customfield_values:tgreviews:tgr_rat ing;", "ratingCount": "&mvt:product:customfield_values:tgreviews:tgr_rev iew_count;" }, </mvt:if>
For the Google Rich Snippets
Code:
<mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0"> <span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> Average rating: <span itemprop="ratingValue">&mvt:product:customfield_va lues:tgreviews:tgr_rating;</span>, based on <span itemprop="ratingCount">&mvt:product:customfield_va lues:tgreviews:tgr_review_count;</span> reviews </span> </mvt:if>
Leave a comment: