/skin/reboot/custom/json_ld.tpl
Replace...
Code:
"@type": "AggregateRating",
"bestRating": "5",
"ratingCount": "12",
"ratingValue": "5"
},
With...
Code:
"aggregateRating": {
"@type": "AggregateRating",
"bestRating": "5",
"ratingCount": "{if $ratingCount}{$ratingCount}{else}12{/if}",
"ratingValue": "{if $ratingValue}{$ratingValue}{else}5{/if}"
},
Then in /reboot/get_testimonials.php
After...
Code:
$smarty->assign("rtestimonials",$rtestimonials);
Insert...
Code:
$qry = db_query("SELECT COUNT(rating) AS rating_total FROM reboot_testimonials WHERE approved = 'Y'");
$result = db_fetch_array($qry);
$total = $result['rating_total'];
$smarty->assign("ratingCount", $total);
$qry = db_query("SELECT AVG(rating) AS rating_average FROM reboot_testimonials WHERE approved = 'Y' AND rating != 0");
$result = db_fetch_array($qry);
$average = ROUND($result['rating_average'], 1);
$smarty->assign("ratingValue", $average);
So if you have the testimonials addon enabled, it'll use those rating values.
https://search.google.com/test/rich-results?id=rce6h-G6-hQQi7_eYRxjRg