Liquid, JavaScript, themes, sales channels
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
User | RANK |
---|---|
37 | |
29 | |
13 | |
12 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023