Skip to content
How To Fix The Dawn v14 Quick Add Variant Image Bug
Browse other ways to boost conversion rate & profit

How To Fix The Dawn v14 Quick Add Variant Image Bug

Today we’re looking at how to fix a bug with the quick add pop up in the Shopify free themes v14.0.0 (Dawn, Refresh, Sense, etc).

When selecting the variant in this quick add modal, the product media doesn't change. In this tutorial we show you how to fix this.

Compatible Themes: This code should work on all free Shopify themes (Dawn, Refresh, Craft, Studio, Publisher, Crave, Origin, Taste, Colorblock, Sense, Ride, Spotlight).

Links:

 

Edit Theme Code

Edit asset global.js method updateMedia(html)

Add this line

const sectionId = this.dataset.originalSection ? this.dataset.originalSection : this.dataset.section;

Replace this line

const mediaGalleryDestination = html.querySelector(`[id^="MediaGallery-${this.dataset.section}"] ul`);

with

const mediaGalleryDestination = html.querySelector(`[id^="MediaGallery-${sectionId}"] ul`);

 

Browse other ways to boost conversion rate & profit

Here's 5 Ways We Can Help You

Here's 5 ways we can help you:

  1. Access to our downloadable AI agent workflows, $4.3 million theme, $100k/mo Low-Risk Facebook Ads SOP, support from us personally, and more for $9: Click here
  2. Get our high-converting theme that generated us $4.3M in sales: Click here
  3. Find Conversion Leaks that cost you orders and profit: Click here
  4. Work with us to add $10,000 to your store in 10 weeks. Send an email to hello [at] theprompted.co with the subject line “10k”
  5. Email us to work privately on custom development. Send an email to hello [at] theprompted.co and use the subject line "custom", and then detail out what you have in mind, including all specifics.