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 152
  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.