How do I disable Auto Select Variant - Dawn theme

How do I disable Auto Select Variant - Dawn theme

Pawsitivelyquir
Visitor
2 0 0

When I go into the product page, I do not want to see the mockup image associated with the default variant as the first image on the page. I would like to have the main page's image to be the first image within the product page. I believe this can be achieved if the auto select is disabled for the variant picker (given that the image associated to the first variant is currently being displayed).

 

Additional info: The theme is Dawn and I am currently using 'Pills' style variant picker. Any changes to the code, will need to also take into account that the customer should not be able to add products to the cart without selecting a variant.

Replies 2 (2)

DaisyVo
Shopify Partner
3794 412 499

Hi @Pawsitivelyquir 

 

Sorry to tell you that it is mandatory
When entering a product page with multiple variations, auto-selecting a variation is mandatory, if the user clicks the add to cart button, there will be data to add to the cart
If there is no pre-selected variation, adding to the cart will cause an error
Regarding the image issue, add the image you want to display to the first variation

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Pawsitivelyquir
Visitor
2 0 0

Hi,

 

Thank you for your reply. But I see others have reached out previously asking for assistance to disable this option (see link below for example) and solution was provided by modify the code. Are you able to help with this?

 

Unfortunately, changing the image for the first variant would not be a good solution as the customer would not be able to see the actual image for that particular variant then.

 

Example:

How can I turn off the auto select variant feature in the Dawn theme?
https://community.shopify.com/c/shopify-design/how-can-i-turn-off-the-auto-select-variant-feature-in...