commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Changing image when selecting variants.

Open krzywiecki opened this issue 6 months ago • 5 comments

I see this functionality is probably missing.

Use case: I have a product in multiple color and size variants. In Shopify admin pane I can add separate image for every variant but when selecting variant on the user side the image in the gallery isn't updated.

I'd expected that when someone is selecting specific colour variant, the image get's changed. For example in this demo: https://demo.vercel.store/product/acme-cup?color=Black

When users chooses "White" the active image in the gallery should change.

I'm relatively new to Shopify but with some guidance I'm glad to implement this feature.

krzywiecki avatar Jun 03 '25 12:06 krzywiecki

The code seems to be working well

issue #1463

Image Image

nist-kishan avatar Jun 03 '25 13:06 nist-kishan

Hmm, just checked it on my phone and it works indeed. It does't work on my desktop tho. Does it open white cup when you open this link in the desktop browser? https://demo.vercel.store/product/acme-cup?color=White

Tested on Linux - Chrome and Firefox. I'll check on my Mac in a moment.

krzywiecki avatar Jun 04 '25 13:06 krzywiecki

Do you mean this issue ? you can select the the variant but it color wont change issue #1463

Image

In your cart you see different color variant image than selected ? issue #1463 Image

Adityawavare06 avatar Jun 27 '25 23:06 Adityawavare06

Also the Color toggle is not changing the color Image

rahul24167 avatar Sep 26 '25 11:09 rahul24167

@krzywiecki Should I try to fix it

rahul24167 avatar Sep 26 '25 11:09 rahul24167