I am currently trying to mark up my website product pages with product rating microdata for google SERP benefits.
The current cart software I am using does have a product rating system. It generates the following html related to the product's rating:
<span id="dnn_ctr783_ProductDetails_ctl02_lblAvgStars2">Average Rating: 5 Stars</span>
I am able to add the schema.org identifier to this span tag to produce the following:
<span id="dnn_ctr783_ProductDetails_ctl02_lblAvgStars2" itemprop="ratingValue">Average Rating: 5 Stars</span>
However, the value specified in the span tag is not valid with schema.org. They require that the "ratingValue" only contain a single digit to specify the rating. My span tag has a lot of additional text.
Somehow, I need to pull the number "5" from the generated rating span tag, and write it into another span tag which will have the proper value for the schema.org product markup.
Any ideas on how to accomplish this? Thanks!