Shopify themes, liquid, logos, and UX
Hey Shopify Team,
Followed this guide: https://community.shopify.com/c/Shopify-Design/Cart-Add-an-Agree-to-terms-and-conditions-checkbox/m-...
Got the checkbox to appear, but I can bypass it by not having to tick the box. There is no preventative pop-up
Could you help me out? Using the Narrative theme.
Thx a lot
Solved! Go to the solution
This is an accepted solution.
I found a solution:
the mentioned code above should be placed into custom.js file.
Thx!
Hello, @laketko
Welcome to the Shopify community!
Please share your site URL,
So I will check and provide a solution here.
Hi KetanKumar,
The site is still under construction, It is not a final version yet.
Thx for ur suggestions
Kind reagrds
Thanks url
but how can i check this issue ?
just try to add something into the cart: press button "Zu den Boxen" afterwards choose one of the boxes afterwards press "in den warenkorb legen" -> press cart symbol. U will see the cart with an box and below.
thx in advance
Thanks for clearfication
sorry, but i can't see any popup code.
according to the link provided above I pasted the code into the theme.js file
$(document).ready(function() { $('body').on('click', '[name="checkout"], [name="goto_pp"], [name="goto_gc"]', function() { if ($('#agree').is(':checked')) { $(this).submit(); } else { alert("You must agree with the terms and conditions of sales to check out."); return false; } }); });
This is an accepted solution.
I found a solution:
the mentioned code above should be placed into custom.js file.
Thx!
Hi There,
I'm trying to follow your instructions on where to paste the code but I can't find this file - or is it one that you create?
My check box is currently not compulsory - the same issue so trying to find where to post the pop up alert code?
Thanks in advance for any help you can provide 😉
Jade
I am having the exact issue using the Impulse Theme. Any advice? The same solution isn't a fix. 😞
Hi @laketko, improve your Shopify cart functionality by following the instructions in this video on adding a 'Agree to Terms and Conditions' checkbox, without the use of apps: https://www.youtube.com/watch?v=smyIqWWuZvs
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024