What's your biggest current challenge? Have your say in Community Polls along the right column.

URGENT: Product Doesn't Show Selected Variant Images (Dawn Theme)

Solved

URGENT: Product Doesn't Show Selected Variant Images (Dawn Theme)

KawaiiForUs
Excursionist
15 1 7

I am facing a problem in Dawn Theme I haven't seen a solution for yet on the web. Let me try to explain it:

 

I have multiple products with multiple variants.

 

When you click on the product for the first time (like going from Homepage to Product page or from Collections page to Product page etc.) it automatically selects the first variant, but when you click on another color/style of the product, the image (media) does not appear. In other words, how can I make sure the variant, and its' respective variant, are showing whenever the variant gets clicked on.

 

Summary: Once you're on the Product Page and you select a variant, it shows only the first image, and if you select another style/variant, it does not show the image of said style.

 

All help would be appreciated 🙂

 

Thank you very much!

Shop: kawaiiforus.com

 

I have tried to uncheck the "Hide other variants’ media after selecting a variant" option, but it does not work, still.

Accepted Solution (1)

KawaiiForUs
Excursionist
15 1 7

This is an accepted solution.

Fixed by changing my global.js code to the global.js code found HERE:

https://github.com/Shopify/dawn/blob/main/assets/global.js

View solution in original post

Replies 6 (6)

KawaiiForUs
Excursionist
15 1 7

Paging @LitExtension 

farid-movsumov
Shopify Partner
104 6 32

Hi @KawaiiForUs I see you already solved this problem for your website. I want to show an alternative solution for the people coming from the search. To show only selected variant images in the Dawn theme you can use Rubik variant images app. For the transparency I am the founder of the app. I explained how to use it in this video.

 

joeybab3
Shopify Partner
130 16 33

It appears to work fine for me, switching animals changed the featured image:

Screenshot 2022-11-14 at 1.37.43 PM.png

Screenshot 2022-11-14 at 1.38.14 PM.png

  

KawaiiForUs
Excursionist
15 1 7

This is an accepted solution.

Fixed by changing my global.js code to the global.js code found HERE:

https://github.com/Shopify/dawn/blob/main/assets/global.js

dariem
New Member
5 0 0

I just tried this and now i can choose any variant options

MRamzan
Shopify Partner
392 3 36

You can display images based on selected variant. Here is the reference:

 

Hire Me:

WhatsApp: +91-9145985880
Email: mohdramzaan112@gmail.com
Skype: mohdramzaan112