The attribute system should do something like that already.
It will show both drop downs in the product but if the customer selects Pleated in the first, only the pleated colours will be shown in the second.
Have a look at this product: https://clothing.b46it.com/shop/clothing/t-shirts/gildan-softstyle-ringspun-cotton-t-shirt-with-logo-embroidery/
If you select 3XL in the size you can see it only shows a limited range of colours.
It looks like the swatch plugin you’re using doesn’t apply that filter.
@seank123 the link you have provided doesn’t work. Hmm I wonder what plugin that site used though, or how did he set it up.
Strange – it’s working for me!
It’s the site I run at work – the size/colour attributes are just standard WooCommerce – no additional plugins used for that.
I really don’t know how to set it up. May I ask how did you do it? @seank123
First you need to set up Attributes – https://www.modernmarketingpartners.com/setting-up-product-attributes-in-woocommerce
Basically, on Products -> Attributes in the left menu add the two attributes you need – Pleated (or Style or whatever you want to call it) and Colour – then add all the attributes – eg: pleated, non=pleated and all the colours.
Then, in the product set up the variations – https://docs.woocommerce.com/document/variable-product
Add both of the attributes, making sure you add all of the colours etc – and make sure the Use For Variations is checked.
In Variations you can then add each combination (as standard it will have Any Colour and Any Style selected – this is probably what you have already?). What you need to do is add a variation for each combination:
Pleated – Bandigo Scarle
Pleated – Blue Velvet
Non-Pleated – Black
Non-Pleated – Eternity Snow
Etc…
Don’t forget to give each one a price or it won’t show up! If they’re all the same price you can used the dropdown above to select a price for all of them – see the Bult Editing bit in the above link.
https://sofabedsdev.wpengine.com/products/chairs-and-ottomans/ottomans/single-convertible-ottoman/
@seank123
Yes it works but the other covers still shows up though even the variations doesn’t match. Hope this is okay though. Thanks :D. I owe you a lot.
-
This reply was modified 7 years, 10 months ago by
jbolhano.
Glad it’s working!
You should contact the support for the swatch plugin – they may be able to tell you how to do it, or add it as a feature in a future version?
Just had a look and perhaps this in Appearance -> Customizer -> Additional CSS might help:
.wcvadisabled {display:none;}
con
(@conschneider)
Engineer
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.