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