how to disable auto variant selection on products shopify

Topic summary

Goal: stop products from auto-selecting a variant so customers must choose one (Lammer theme v4.0.0).

Context: The requester wants a quick fix but won’t share the store URL publicly due to client privacy. A screenshot was provided instead.

Proposed approach (no theme-specific code given):

  • Locate the variant selection logic in the theme and remove any default selection (e.g., the “checked” attribute) so no option is preselected on page load.
  • Add validation/error handling to the variant form to ensure all required options (up to three) are selected before proceeding, showing a prompt if not.
  • Adjust the Add to Cart button to be disabled or to block submission until all variant options are chosen.

Notes: Guidance implies edits in Liquid and potentially JavaScript handling variant forms and button state. No code snippets or file paths were provided due to lack of store access.

Status: Unresolved. Next steps are to implement the suggested changes or provide private access for a tailored solution.

Summarized with AI on December 22. AI used: gpt-5.

Hi,

Currently, my website has an auto-selection of product variants. I want my website not to have product variants auto-select so that customers can select the variant as their choice.

Currently, I am using “Lammer” theme version 4.0.0

Please I need quick solution.

Thanks in advance

1 Like

Hi @almahmud1

Thanks for reaching out! I understand your concern about disabling the auto-selection of product variants on your website. I’d be happy to help you with that.

However, I think there is no quick solution for this. Can you share the store URL with me and I can try to see what I can do to make that happen? This will allow me to take a closer look at your current setup and provide a more tailored solution.

Looking forward to hearing back from you!

Kind regards,
Roy

Actually, I am not comfortable to share the store URL in a public place, because I’m a freelancer and this store owner is another one, so this is not safe for me. I attached a screenshot so that you can understand. And if it is possible give me solution to the screenshot of my product variant. I hope you understand.

1 Like

Hi @almahmud1
Thanks for sharing the screenshot for additional reference. I understand your concern of not able to share the URL. What I can suggest is, please see if you can find the primary functionality of variants and add an error handling function that will see if all the options in the variant form is selected or not, otherwise it throws an error prompting user to do so since there can be 3 options.
To not select it at page load, please find the liquid code responsible of adding the “checked” attribute and remove it.
Also the “Add to cart” button needs to be handled as well when one of many of the options are not selected.

Kind Regards,

Roy