hello! so i'm customize the dawn theme but i can't find the file where to put the code to make required agree to the terms and condition, i was able to put all the various checkboxes (newsletter, cart...) but I can't make them mandatory before checking out, in my current theme i added the code in the "theme.js" section and it's working perfectly but i can't make it work in dawn, any help?
these are the instruction that i used :
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
- Step 1: Go to layout > theme.liquid file and add code like tutorial for debut theme.
- Step 2: Go to layout > theme.liquid file and add the same code as step 4 of the tutorial.
- Step 3: Go to sections > main-cart-footer.liquid file and add the same code as step 7 of the tutorial.
Hope it is clear to you.
i did those step but i can still checkout, create a new account and subscribe to the newsletter without agree to the terms and conditions
I have just successfully applied this to my dawn theme store (thank you!), however it is for a "click here forproduct substitution" as oppossed to agreeing to T&C. Do you know if this will show on each customers order form which I receive? If you have any solutions that would be most appreciated
You can set the name attribute and value for the checkbox, eg:
<input type="checkbox" name="attributes[Terms and Privacy]" id="agree" value="Agreed at">
Which when the customer place the order, you will see the attribute and value reflect on the order's additional details :
You can change the attribute and value to the text you want, eg:
<input type="checkbox" name="attributes[Substitution allowed]" id="agree" value="Yes">
Hope this helps!
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023