Hi,
It’s the function of WooCommerce. If your site does not have it, your theme has disabled that function.
You can reuse it by adding this to file functions.php of your theme:
For archive page:
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
if ( ! function_exists( 'woocommerce_template_loop_rating' ) ) {
/**
* Display the average rating in the loop.
*/
function woocommerce_template_loop_rating() {
wc_get_template( 'loop/rating.php' );
}
}
For product single page:
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
if ( ! function_exists( 'woocommerce_template_single_rating' ) ) {
/**
* Output the product rating.
*/
function woocommerce_template_single_rating() {
if ( post_type_supports( 'product', 'comments' ) ) {
wc_get_template( 'single-product/rating.php' );
}
}
}
Best regards