Home Forums Theme Support Dokan Empty Categories

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Gary 4 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18597

    casper0219
    Member
    Post count: 18

    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

    #18645

    casper0219
    Member
    Post count: 18

    Anyone?

    #18647

    Mahi
    Member
    Post count: 1555

    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.

    #18650

    casper0219
    Member
    Post count: 18

    Okay looking forward to that feature Thank You!

    #36252

    Gary
    Member
    Post count: 39

    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

    #36254

    Gary
    Member
    Post count: 39

    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 6 posts - 1 through 6 (of 6 total)

The topic ‘Empty Categories’ is closed to new replies.