Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2.3.4 BS - Not aggregating Rating reviews - structured data


egutierrez

Recommended Posts

3 months after using 2.3.4 BS, I have found that Rating reviews on product_info page is not aggregated to Google structured data.

 

It looks like it should be done for this piece of code on product_info, but it's not working. What could it be wrong?

echo '<div id="gotoreview" class="text-center alert alert-success" itemprop="rating" itemscope itemtype="http://data-vocabulary.org/Rating"><meta itemprop="average" content="' . (int)round($average['average']) . '" /><meta itemprop="best" content="5" />' . sprintf(PRODUCT_REVIEWS_TEXT_AVERAGE, tep_output_string_protected($average['count']), tep_draw_stars(tep_output_string_protected(round($average['average'])), true)) . '</div>';
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...