$$RAWRATINGVALUE$$ merge code works on the product reviews widget but not on the product reviews template
I was trying to add a "5 out of 5 stars" message on the product reviews template and add the related structured data tags for Google, but the merge code is rendering blank on the reviews template.
In Template:
<div itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating" style='display:none;'>
<meta itemprop="worstRating" content="1">
<span itemprop="ratingValue">$$RAWRATINGVALUE$$</span> out of
<span itemprop="bestRating">5</span> stars
</div>
Renders as:
<div itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating" style="display:none;">
<meta itemprop="worstRating" content="1">
<span itemprop="ratingValue"></span> out of
<span itemprop="bestRating">5</span> stars
</div>
The above code does work on the Product Reviews Widget, but you can not match that format currently on the Product Reviews template itself.
Please sign in to leave a comment.
Comments
0 comments