Maybe use categories instead so you can have a hierarchy.
Thread Starter
tahoom
(@tahoom)
Thanks Mike
We have a lot of products like lamps, oils, mirrors and etc. Creating categories and then define each product for that car in that category is so frustrating!See this page in amazon:
https://www.amazon.com/automotive-auto-truck-replacements-parts/b/ref=nav_shopall_apa?ie=UTF8&node=15684181
there is a part named “Shop by vehicle” and you can select your car. I don’t think that the amazon does like what you said. It must be done with attributes.
It would essentially take more work to assign attributes and terms to the products though, wouldn’t it?
You can use the “Car type” parent attribute and assign a term accordingly to each car. Then you’ll need another attribute that will include all of the car type’s models. So all Toyota and Hyundai models.
Then after the customer selects a car type when using the layered nav, only that specific car type’s models will show in the next attribute’s layered nav widget.
Alternatively, each cart type can have their own attribute for models, but you would need to conditionally hide widgets based on the car type selection.
Thread Starter
tahoom
(@tahoom)
Thanks Caleb for suggestions.
I have near 500 products and I did the attributes for this case like beneath:
car type > toyota > Land criuser …..
car type > hyundai > Santafe …..
and so on.
The problem is how to apply the selection for customer. I want my customer can choose him/her desired car type to see the related products.How can I do this like the amazon link I’ve sent before?
Already said attributes cannot be hierarchical in WooCommerce. If you want a true hierarchy structure, you must use categories.
Otherwise you need 2 attributes; type and model. Then use layered nav widgets to filter.
Thread Starter
tahoom
(@tahoom)
Thanks Mike
Now I realized what you actually talking about. I’ll solve the problem with your suggestions. Is it possible for a professional programmer to do what I want?
Not sure, they’d need to review your needs.
jobs.wordpress.net
https://woocommerce.com/wooexperts/