WooCommerce Star Rating


#1

I'm on rtPanel 4.1.3 and I'm customizing rtPanel child theme from Github repo to meet my needs. I use the following shortcode in my homepage template to display latest products from 'product' category. [product_category category="product" per_page="12" columns="4" orderby="date" order="desc"]

Here's my issue. If there are any reviews for any product that is being displayed by this shortcode, it shows start rating based on it in the product listing. But if there aren't any reviews for a product, star rating ain't shown and the uniformity is lost in displaying products. How do I show 0 star rating for a product with no reviews so far?


#2

Hello Arjun,

Star rating ain't shown if rating is zero, If you want to show 0 star rating then you will need to edit rating.php in WooCommerce template.

Thanks,


#3