egutierrez Posted November 30, 2015 Share Posted November 30, 2015 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 More sharing options...
burt Posted December 1, 2015 Share Posted December 1, 2015 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. Link to comment Share on other sites More sharing options...
egutierrez Posted December 2, 2015 Author Share Posted December 2, 2015 Thanks @@burt. I updated it and it works perfect now. I also have applied this commit (Update Breadcrumb to Schema) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.