Autoselect parent product category when child product category is selected
-
Hi there, I have 3 levels of categories (Eg. Handmade > Toys > Wood cars) I want that when the user select “Wood cars” the categories “handmade” and “toys” are automatically selected, how can I achieve that?
I did some research before asking and I found this:
https://wordpress.org/ideas/topic/if-child-taxonomy-term-is-selected-automatically-select-set-the-parent-term
https://gist.github.com/georgestephanis/6869291But as they are old posts I don’t know if they still work, also they refer to taxonomies and I need to do it in product categories.
Thanks in advance
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Autoselect parent product category when child product category is selected’ is closed to new replies.