Disable auto select variant Dawn theme

Disable auto select variant Dawn theme

BerkerOzer
Tourist
10 0 3

I am using dawn theme and pill variants. When the page loads, the first variation is selected by default, but I don't want this because there are other variations that need to be selected after the first one. Since it is selected by default, the "Add to Cart" option can be used before the other variations are visible and I don't want that.

Replies 4 (4)

websensepro
Shopify Partner
1854 215 261

Hi @BerkerOzer 

1. Go to Online Store -> Theme -> Edit code.
2. Open your product-variant-options.liquid and remove this 

{% if value.selected %}
        checked
      {% endif %}

code from your file.

websensepro_0-1737370748554.png

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

 

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
BerkerOzer
Tourist
10 0 3

Hi @websensepro ,

 

Now even I select a variant it doesn't look like selected.

namphan
Shopify Partner
2263 296 332

Hi @BerkerOzer,

It will be a complex request with many steps to follow:

- Disable default selection for first display in main-product.liquid file.

- Show message when customer has not selected variant using JS.

So I recommend you to hire a professional for this, it will be difficult to guide everything in detail

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
BerkerOzer
Tourist
10 0 3

Hi @namphan,

I just need this one

-Disable default selection for first display in main-product.liquid file.

 

the message you mentioned is already there