I'm aware that Woo questions are supposed to be off-topic here, but I've asked this question to WooCommerce support and they suggested that the only way to achieve what we're after is with custom coding, so I'm here to ask if anyone can point me in the right direction...

This relates to an online clothing store. We have variable products set up with colour and size attributes, for example a product might have 2 variations; Green/Any Size and Black/Any Size.

There is an image of the product in the corresponding colour for each variation, but at the moment the image doesn't switch unless a colour AND size is selected (I'm aware this is how Woo works out of the box). We would like to make it so that the image switches when JUST a colour is selected.

Is this doable? If so which hooks/filters/actions should I be looking at?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.