Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: How to Disable Auto Select Variant Dawn Theme?

How to Disable Auto Select Variant Dawn Theme?

Wtc1
Visitor
2 0 4

Variant is always pre-selected on smallest size causing mistaken orders

Replies 2 (2)

NomtechSolution
Astronaut
1245 113 160
  1. In the left-hand sidebar, click on the "Assets" folder to expand it.

  2. Look for the "theme.js" or "theme.js.liquid" file and click on it to open the file editor.

  3. Comment out or remove the code block that handles the auto-select variant feature. It may look something like this:

 

// Shopify.theme.jsAutoSelectVariant.enable();

 

Wtc1
Visitor
2 0 4

Hi, there is no "theme.js" or "theme.js.liquid" is Assets folder. The closest is "theme-editor.js" but this doesn't any code similar to what you mentioned.