Home Forums WoodMart support forum Size Guide Missing Categories

Size Guide Missing Categories

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #420195



    I was trying to create size guides for some categories that do not yet have any products assigned and I noticed you can’t do that.

    I looked at themes/woodmart/inc/integrations/woocommerce/modules/size-guide.php and the function woodmart_sguide_category_template uses get_categories() to get the categories you can assign a size guide to. However, by default this function only return categories that has at least one object assigned.

    Therefore, it is impossible to preemptively add size-guides for products that soon-to-be released but have not been created.

    My suggestion is to use the 'hide_empty' => false parameter in the argument object to get_categories such that all categories appear.

    This may be an intentional decision, but at the least I feel there should be a toggle for this.


    Artem Temos


    Thank you for letting us know. We will fix this in our next theme update.

    Kind Regards

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