Quote from Ivan on February 4, 2022, 18:55
Hi, I'm trying to figure out something and it starts to slowly drive me insane :)
Let's say we have a Taxonomy with Parent Terms and Child Terms. When I select the Parent term it shows all the products in it (even if no child terms are selected).
But if I select only one Child Term, it will display products from other Child terms because the Parent Term is still selected.
Example:
Custom Taxonomy
+ Parent Term
- Child Term 1
+ Child Term 2
- Child Term 3
This will show products from Child term 1, 2, and 3. And I want it to show only products from Child Term 2 without forcing the user to manually un-select the Parent Term.
Shortcode used is [woof autosubmit=1]
Is there a way to automatically un-select the Parent Term or exclude it from the query when one of the Child Terms is selected?
Any hooks or filters I can use to modify the behavior?
Any help would be much appreciated.
Kind regards,
Ivan
Hi, I'm trying to figure out something and it starts to slowly drive me insane :)
Let's say we have a Taxonomy with Parent Terms and Child Terms. When I select the Parent term it shows all the products in it (even if no child terms are selected).
But if I select only one Child Term, it will display products from other Child terms because the Parent Term is still selected.
Example:
Custom Taxonomy
+ Parent Term
- Child Term 1
+ Child Term 2
- Child Term 3
This will show products from Child term 1, 2, and 3. And I want it to show only products from Child Term 2 without forcing the user to manually un-select the Parent Term.
Shortcode used is [woof autosubmit=1]
Is there a way to automatically un-select the Parent Term or exclude it from the query when one of the Child Terms is selected?
Any hooks or filters I can use to modify the behavior?
Any help would be much appreciated.
Kind regards,
Ivan