Hi there, I see a huge difference with the product star rating between your theme and WooCommerce:
https://postimg.cc/v1M334Zz
I fixed the problem by replacing the function add_star_rating() in inc/woocommerce.php, line 415:
function child_custom_actions() {
remove_action('woocommerce_after_shop_loop_item_title', 'add_star_rating', 5 );
}
add_action( 'init' , 'child_custom_actions' );
function add_star_rating_loop(){
global $woocommerce, $product;
$average = $product->get_average_rating();
echo '<div class="star-rating"><span style="width:' . ( ( $average / 5 ) * 100 ) . '%"></span></div>';
}
add_action('woocommerce_after_shop_loop_item_title', 'add_star_rating_loop', 5 );
I’m not an expert with PHP but this issue seems to be fixed only by removing the absint() function. I guess there is a good reason if your dev added it into the theme and that’s why I share my “investigation” with you 🙂
Regards
Pierre