Home Forums WoodMart support forum How show empty(without products) subcategories in shop page?

How show empty(without products) subcategories in shop page?

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

    mirdonproduction
    Participant

    How show empty subcategories in shop page?

    #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

    mirdonproduction
    Participant

    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

    mirdonproduction
    Participant

    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.