How can I remove the pre-selected size variant on the product page and require the customer to choose a size before they can add the product to the cart?
Right now, a size is automatically selected when the page loads. I’d like to:
Have no size selected by default
Disable the “Add to Cart” button until the customer selects a size
Prevent adding the item to the cart unless a size is chosen
Is there a recommended way to implement this in Shopify (theme setting, Liquid change, or JavaScript)?
Shopify defaults to selecting the first available variant out of the box. To change this so nothing is selected and the ATC button is disabled, you’ll definitely need to edit your theme’s Liquid and JS files (usually variant-selects.js or global.js if you’re on a newer OS2.0 theme).
What theme are you currently using? The exact code changes depend heavily on that.