DAWN THEME: Show Featured image While Landing On Product Page

Hello everyone! I am struggling to find a solution to this matter. I would highly appreciate it if someone could help to solve the below.

Here is my problem:

Whenever someone is landing on my product page, the first image he will see is the first variant image as it is selected by default whereas I would like the first featured image to be displayed.

I am using Dawn theme (version 6.0.2)

Thanks to anyone who will take time trying to help

Hi there,

Please share or DM your store URL & password (if any).

I will look and let you know the solution.

Thanks

Hi @NicoMLX

That matter you talking about, you need check on products.liquid file code.

At here you should be change the code how to show the featured image of product is default.

Can you please follow this docs. https://shopify.dev/api/liquid/objects#product

let me know if you have the question regarding technical.

Thanks!

Hello Sajat, thanks for your reply.

I am not sure how to DM there but here is my store URL "https://joyeuxpuppy.myshopify.com/"

Let me know if you can assist.

Hi NicoMLX,

The easiest way to do this is:

Go to your product, then go to options.

You should see the variants.

Click on edit → Then drag and reorder the variants (option values), to show which variant you want to display at first.

Something similar to this

Hope this helped.

Please mark this as Accepted Solution if this helped you.

Thank

Hello Sajat, thanks for your advice but it is not a matter of showing one variant before another. What I want is to display first is NOT a variant image but the first featured image.

Any idea how to do this ?

Hello Phavia, thanks for replying but unfortunately I am not sure which code to use from the list you shared.

Would you be able to help on this ?

@NicoMLX

I see, so about this matter, if you want i will make a request like collaborator to your site, then will check and implement for you.

Let me know if you interest. Thanks!

@DitalTek I am definitely interested! You can send the request and I will approve it.

@NicoMLX ,

I’m created request, can you please check? Thanks!

Hello Phavia, I approved the access request.

Thanks for your help.

Hi @NicoMLX ,

When user access to product page the featured image will show up first, look like video attachment bellow, this is the feature you want implement, right?

Can you please check video and spend a little the time read the my signature, and let me know if you want deploy to live theme.

Thanks!

Hi Phavia,

Yes that’s exactly what I want!

I see it is not working like in the video in the theme you duplicated. Did you delete it the code ?

Thanks.

Hi @NicoMLX ,

The code just on my local and still not push to theme live yet, you can check on Dev[Dawn] theme, i had updated code on this theme because i don’t want my code affect to theme live site before you confirm code is working.

Thanks!

Hello Phavia,

Thanks for your valuable support on this. Would you please share what is the code you added to the theme so I (and anyone checking the case) could replicate it on other shops ?

Thanks again.