How to get total count for each star rating?

You can use the function get_rating_count() by specifying on each call the value needed. For example : global $product; $rating_1 = $product->get_rating_count(1); $rating_2 = $product->get_rating_count(2); $rating_3 = $product->get_rating_count(3); $rating_4 = $product->get_rating_count(4); $rating_5 = $product->get_rating_count(5); You can read more about the function

WooCommerce HTML after short description if product is in specific category

Woocommerce’s product categories are custom taxonomy terms, so you need to use the taxonomy functions (eg, has_term()) rather than WordPress’ category ones. function filter_woocommerce_short_description( $post_excerpt ) { global $post; if ( has_term( “term-name”, “product_cat”, $post->ID ) ) { $post_excerpt .= “<br/>” . “Test”; } return $post_excerpt; }; add_filter( ‘woocommerce_short_description’,’filter_woocommerce_short_description’,10, 1 );

Woocommerce checkout fields on the same line

Add custom CSS using custom style editor, for below classes and IDs .woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; } .woocommerce form .form-row { display: inline-block; } .woocommerce form .form-row input.input-text { max-width: 252px; } #billing_first_name_field { order: 1; } #billing_last_name_field { order: 2; } #billing_company_field { order: 3; } #billing_country_field { order: 4; } #billing_address_1_field … Read more