Hi I've used you mod and it works well thanks.
But..... there's always a but
I want my customer to be able to disable some of the variants if a color becomes unavailable. If you do so, color_swatches.tpl still do the loop as if all the variants were still available. The result is that I get blank space with an X at the place of the picture.
Have you figure out how to skip th variant if its disable?