Is there any way to change the Gallery(thumbnail) image on visual swatch, currently only the base image get changed, I need to replace all the gallery image with selected product images

enter image description here

  • Any error on the console? or magneto log file? Jan 15, 2021 at 6:05
  • @DhirenVasoya no errors, actually you can see the first thumbnail ,that one only get changed on swatch(this is how magento default working). but i need to change the entire images with selected product, suppose i have a configurable product called jacket and i have choose the size xl and colour red so there is a simple product associated with this and it have some images this image should come here
    – amith lal
    Jan 15, 2021 at 6:25
  • for that you need to do the customization code there. Jan 15, 2021 at 6:27
  • @DhirenVasoya Thats what the help i'am looking for
    – amith lal
    Jan 15, 2021 at 6:47

1 Answer 1


You need to add images to your associated product based on swatch color. Then it will change images.

  • Already there are image(more than 5)for each single products but when we choose configuration only base image get changed
    – amith lal
    Jan 18, 2021 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.