how disable auto select variant dawn them please help about it

shah24
Visitor
1 0 0

Hello,

 

Im using Dawn theme.

 

I need to disable the auto-selecting of the first available variant. That way, the customer will be prompted to manually select a variant before he can add to cart. i read previous post about it and try the code its not work ,

please help me how solve this problem.

Replies 6 (6)
LitExtension
Shopify Partner
4860 1001 1115

Hi @shah24,

Please go to main-product.liquid file and remove code here:

remove active variantsremove active variantsremove id first variantremove id first variant

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
clareswandesign
Visitor
1 0 0

Does this only work in a specific Dawn version? I'm in Dawn 4.0. I can't find the code above in the "main-product.liquid" file. 

dumbwaystodie
Visitor
1 0 1

Works with Crave theme. Thank you so much!!!!!!

valkojob
Visitor
1 0 1

I did it and now customer have to select size manual. But I want to change error message from: "Required parameter missing or invalid: id" to "Please choose your size" when customer forget choose size.

Thanks for help.

ServiceFirst
Visitor
2 0 0

Did you ever get this fixed?

 

HGFLtd
Visitor
1 0 0

Hi there, I am using Dawn V.11 and I cannot see this code available any more.
Are you able to update this case please?

Thanks!