How can I stop automatic image switch for product variants?

Hi,

Looking for a way to disable the image switch when selecting a product variant. Since Shopify automatically selects the first variant in the product page, it automatically switches to the variant image and doesnt stay on the main image. Just in general not switching to the variant image would be a great solution.

Any suggestions help!

Hi @TomsL

Open your theme code, Find the global.js in the asset folder.

Then comment out the code I marked out.

Hope this helps. Fell free to reach out if any other questions.

@Sonya_2025 where would I comment this out in the current Dawn version 15.2.0?

Hi, @Derk1 Find product-info.js in your asset folder.

Comment out the code below. Hope this helps

Hi what about PureTemplate?
Which section?
Thanks in advance"!