Hi,
I use this custom code in function to show star rating for all product (include product have rating or not) on product/product catalogue page.
function show_rating( $rating_html, $rating, $count ) {
$rating_html = '<div class="star-rating">';
$rating_html .= wc_get_star_rating_html( $rating, $count );
$rating_html .= '</div>';
return $rating_html;
};
add_filter( 'woocommerce_product_get_rating_html', 'show_rating', 10, 3 );
/**
It working fine on ver 6.3.3
But when i update them to 6.4 and later, it not show/working./
Pls check
Attachments:
You must be
logged in to view attached files.