Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
Hi @Marika_Barreca,
- 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
Hi @Marika_Barreca,
Please send your site and if your site is password protected, please send me the password. I will check it.
Hello,
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!
Axel
How do you make the Terms and Conditions open in a popup instead of a new tab?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025