Woocommerce Color-Driven Image Swap
Budget: $10 – $30 USD
It is an online clothing store. We have variable products configured with color and size attributes, for example a product can have 2 variations; Green/Any size and Black/Any size.
There is an image of the product in the corresponding color for each variation, but at the moment the image does not change unless a color AND size is selected (I know this is how Woo works out of the box). We would like to make it so that the image changes when ONLY one color is selected. I have code that allows the variation image of a product to change when only the main attribute (e.g. color) is selected, rather than having to select all the variation attributes (e.g. color and size) for the image change.
I would like to adjust this code to my woocommerce
There is an image of the product in the corresponding color for each variation, but at the moment the image does not change unless a color AND size is selected (I know this is how Woo works out of the box). We would like to make it so that the image changes when ONLY one color is selected. I have code that allows the variation image of a product to change when only the main attribute (e.g. color) is selected, rather than having to select all the variation attributes (e.g. color and size) for the image change.
I would like to adjust this code to my woocommerce