Bigcommerce added microdata tags in early 2015. There is an issue with the reviewCount
and ratingCount
if there are no reviews for your product. I found a non-JS way to fix this error that validates in the Google Testing Tool.
To fix this issue, add the %%GLOBAL_HideRating%%
template tag into your Panels/ProductDetails.html
template file in the itemprop label for the ratingCount
and reviewCount
microdata tags. If there IS a rating to show, the HideRating
tag is replaced with an empty string, if there is NO rating, then it adds the word "none" (as in display:none
) which breaks the microdata tag causing Google to ignore it.
Template Code:
<meta itemprop%%GLOBAL_HideRating%%="ratingCount" content="%%GLOBAL_ProductNumReviews%%" />
<meta itemprop%%GLOBAL_HideRating%%="reviewCount" content="%%GLOBAL_ProductNumReviews%%" />