Hello,
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.