Hello there,
thanks for contacting us! ??
Please, could you try to add this custom code in the functions.php of your active theme?
remove_action( 'ywar_summary_prepend', array( YITH_WooCommerce_Advanced_Reviews::get_instance(), 'add_reviews_average_info' ) );
if (!function_exists('ywar_summary_prepend_custom')){
add_action('ywar_summary_prepend', 'ywar_summary_prepend_custom');
function ywar_summary_prepend_custom( $product ){
if ( get_option( 'woocommerce_enable_review_rating' ) === 'no' ) {
return;
}
$instance = YITH_WooCommerce_Advanced_Reviews::get_instance();
$product_id = yit_get_prop( $product, 'id' );
$average = $instance->get_average_rating( $product_id );
$count = count( $instance->get_product_reviews_by_rating( $product_id ) );
$rated_text = sprintf( __( 'Rated %s out of 5 stars', 'yith-woocommerce-advanced-reviews' ), esc_html( $average ) );
?>
<div class="woocommerce-product-rating">
<div class="star-rating" title="<?php $rated_text; ?>">
<span style="width:<?php echo( ( $average / 5 ) * 100 ); ?>%">
<span class="review-rating-value"><?php echo $rated_text; ?></span>
</span>
</div>
<span class="ywar_review_count"><?php printf( "%d %s", $count, _n( " review", " reviews", $count, 'yith-woocommerce-advanced-reviews' ) ); ?></span>
</div>
<?php
}
}
Let us know!