skip to Main Content

Show number of variations in WooCommerce shop page

I want to display the number of variations for each product in the Shop Page of WooCommerce, under the Product title, I tried the following: add_action( 'woocommerce_after_shop_loop_item', 'custom_echo_stock_variations_loop' ); function custom_echo_stock_variations_loop(){ global $product; if ( $product->get_type() == 'variable' ) {…

VIEW QUESTION
Back To Top
Search