i’m trying to modify my theme (Impulse) to display product variant image as color swatches (instead of a color png).
I modified the liquid file that contains the swatch code, but I’m stuck with an issue. A product with different color variants will display only the first product variant image on all swatches. See picture attached photo.
The variant count is correct, but it chooses the first variant image for all color swatches.
you can just upload your swatch image in the asset folder, for example, your have the color red so please upload the image red.png or white so white.png make sure the same name image upload if long name color swatch so fine name is your-color.png