woocommerce/templates/single-product
Tamara Zuk 7eaae2d561 Fix average product rating when ratings are not required
If ratings are not required, the total rating count was counting all
reviews which skewed the average rating. In other words, reviews with
no rating were counted as a “zero” rating in the average rating
calculation. This bug was introduced in
83a457b29c which provided a fix for #6839.

This change introduces a new product method `get_review_count()` which
can be used to accurately calculate the total number of reviews for a
product. Some instances of `get_rating_count()` were replaced with
`get_review_count()` where appropriate. Additionally, the
`single-product/rating.php` template was adjusted to display the
correct number of customer reviews and ratings in rich snippets. I’ve
also included the `bestRating` rich snippet detailed
[here](http://schema.org/AggregateRating). The version number was
adjusted to 2.3.2 on that template as I think this is a larger change.
2015-02-11 17:55:16 -05:00
..
add-to-cart Fixed variable fields on frontend, closes #6868 2014-12-22 13:29:13 -02:00
tabs Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
meta.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
price.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
product-attributes.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
product-image.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
product-thumbnails.php gallery column css. closes #6767 2014-11-17 15:41:27 +00:00
rating.php Fix average product rating when ratings are not required 2015-02-11 17:55:16 -05:00
related.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
review.php Retrive reviewers avatar using the email 2014-12-08 12:07:22 +01:00
sale-flash.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
share.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
short-description.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
title.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45
up-sells.php Absolute path should have curly braces - part 2 2014-09-22 22:22:57 +05:45