This topic contains 5 reply and 3 voices, and was last updated by Gary 4 years, 9 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
April 12, 2014 at 5:42 pm 18597
Gary Hello Again. I have just created a bunch of categories, but when i create a category, it shows up even if its empty? i dont wanna show categories when they are empty Thank you
April 13, 2014 at 3:07 pm 18645
casper0219 casper0219

Anyone?

April 13, 2014 at 3:14 pm 18647
Mahi Mahi

Sorry, currently there is no option to hide empty categories. But, very soon we will implement this with product counter.

Will update you here as well.

April 13, 2014 at 3:20 pm 18650
casper0219 casper0219

Okay looking forward to that feature Thank You!

February 10, 2015 at 12:20 am 36252
Gary Gary

Hi is there any update on this particularly for the homepage as this just turns customers away as they browse through empty products. I can see each seller has the a category list which removes all empty list, is there some code I can add to functions.php or something to remove from homepage.

Thanks

February 10, 2015 at 12:22 am 36254
Gary Gary

There is a code for woocommercve widget here, is there anything similar which can be added for the category list on homepage thanks 🙂

/*
* @goliver79
* woocommerce hide empty categories in woocommerce widget “product categories”
*/
function woo_hide_product_categories_widget( $list_args ){
$list_args[ ‘hide_empty’ ] = 1;

return $list_args;
}
add_filter( ‘woocommerce_product_categories_widget_args’, ‘woo_hide_product_categories_widget’ );

Viewing 5 Posts - 1 through 5 (of 5 total)