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

Posted

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>';
Posted

product_info.php resolves to this.  The code you have posted is not standard..for product_info.php

 

It looks more like the old code we used on product_reviews.php - if so, update to the new code which was changed in September.   commit.

 

 

 

 


 

Archived

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

×
×
  • Create New...