A store owner encountered an issue where product images weren’t updating when switching between variants (e.g., selecting a blue headband still displayed the black headband image), despite each variant having an associated image.
Root Cause Identified:
The problem stems from the “Swipper product image carousel” app, which doesn’t natively support variant-based image switching.
Solutions Proposed:
Switch to a different app that supports this functionality
Implement custom JavaScript code in the theme
Technical Fix:
A detailed code modification was provided involving:
Creating a theme backup first
Editing assets/global.js
Modifying the updateMedia() function to trigger the image slider when variants change
Outcome:
The custom JavaScript solution was successfully implemented and resolved the issue completely.
Summarized with AI on November 8.
AI used: claude-sonnet-4-5-20250929.
Hi! I have multiple variants for many of my products. When I’m on a product page and I try switch between the different variants, the image will not change.
For example, I want to select a blue headband variant, but the image shown is still the black headband.
Does anyone know of a fix for this? I have made sure each variant has an associated image when setting up the products.
Hello @Theo_Bee I have checked your details.
To change the image when we switch between different varients need some custom coding.
let me know if you need help with the coding.
Thanks