Automatic parent category selection for products Content:
-
Hello WoodMart Team,
I am using the WoodMart theme for my multi-vendor marketplace (thriftly.mn). I have an issue regarding product category selection.
When a vendor adds a product and selects a child category (e.g., Women > Shoes), they often only check the child category “Shoes” and forget to check the parent category “Women”. As a result, the product does not appear on the parent category page (“Women”), it only shows up in the specific child category.
Is there a way to automatically select all parent categories when a child category is selected? I would like this to work both in the backend and on the vendor’s product upload form.
Could you please provide a code snippet or a setting within the theme to achieve this?
Hello,
WoodMart theme do not have a built-in setting to automatically select parent categories when a child is chosen during product addition. This is a common WooCommerce behavior where products must be explicitly assigned to all desired categories (parent and child) to appear in both.
To achieve automatic parent selection requires customization, without customization, it is not possible.
Best Regards.