Home Forums WoodMart – Premium Template How show empty(without products) subcategories in shop page?

This topic contains 5 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 1 month, 1 week ago.

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

    How show empty subcategories in shop page?

    Private Content Hidden
    #162361

    Hello,

    You can configure the showing categories/sub-categories on the shop page in Appearance > Customize > Woocommerce > Product catalog.

    It is not possible to show sub-categories on the shop page. You can show only categories and when you go to the category page you can show sub-categories.

    Best Regards

    #162665

    You didn’t understand me.
    How show empty(without products) subcategories in shop page?

    Attachments:
    You must be logged in to view attached files.
    #162774

    Hello,

    This is Woocommerce functionality and our theme does not influence that.

    Best Regards

    #162841

    I found a solution
    Code goes in function.php file of your active child theme (or active theme). Tested and works.

    add_filter( 'woocommerce_product_subcategories_hide_empty', '__return_false' );

    #162867

    Hello,

    Thank you for sharing the information. If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How show empty(without products) subcategories in shop page?’ is closed to new replies.