I use 5 rating options for a product review.
It is displayed with the well known stars, see below.
But I want to also display the total score.
A score that display the average score of the total 5 of that score.
(I do not want to display the average of all reviews, only the average of each individual review)
This is my detailed.phtml
<?php $_votes = $this->getRatingVotes($_review->getId());?> <?php if (count($_votes)): ?> <table class="ratings-table"> <col width="1" /> <col /> <tbody> <?php foreach ($_votes as $_vote): ?> <tr> <th><?php echo $_vote->getRatingCode() ?></th> <td> <div class="rating-box"> <div class="rating" style="width:<?php echo $_vote->getPercent() ?>%;"></div> </div> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?>
How can I display this?