I’m thinking about it, because it looks that I need to do something like this:
1. Go to Products > Categories.
2. Create BMW category.
3. Create Tires category and set parent as BMW.
4. Create Audi category.
5. Create Tires category and set parent as Audi.
Do you know what I mean? I need to create two “Tires” categories then.
In fact I need a possibility to have all my categories in the left sidebar:
Tires
Engines
Wheels
…
and when somebody clicks on Tires it displays all Tires in my shop that fits to any brand (BMW, Audi etc).
However when somebody clicks “BMW” on the right sidebar and then “Tires” – it displays only Tires that fits to BMW.
Please let me know if I explained it correctly. 🙂
I would suggest creating the first two major categories and see if that works best for you.
I think you need to determine what would people be looking for first: “BMW” parts or “Tyres” and then figure out the heirachy from there.
Another option is to have a parent category of “Brand” and then all the brands within that category. and then tyres and so fourth.
So in fact I would need separate “Tires” subcategory for each brand like “BMW”?
And have:
BMW -> Tires
Audi -> (another) Tires
Mercedes -> (another) Tires
Is there any way to have one “Tires” to any brand?
I’m looking for any algorithmic ideas. Maybe I could code it in PHP but have no idea how to resolve this problem.
Plugin Support
slash1andy
(@slash1andy)
Automattic Happiness Engineer
Hey there!
You don’t need to use subcategories for this. You can set up each one as a standalone category, for instance “Tires” and “BMW”. You would put BMW Tires in both categories, but Audi ones would only go in the Tires (and the separate Audi) one.
You’d want to look for a filtering plugin to make this a bit more elegant for you, something like https://woocommerce.com/products/product-filters/?aff=10486&cid=1131038
Hopefully that helps! Have a great one!
Thanks Andrew. How can I display only products that are in both categories i.e. BMW and Tires?
I was thinking about something like this: https://ww.wp.xz.cn/support/topic/edit-product-categories-widget/.
Any ideas?