Liquid, JavaScript, themes, sales channels
Hi,
I have added a Terms And Conditions Checkbox to my cart based on the following suggestions, but it is not working. It lets me checkout without ticking the box: https://community.shopify.com/c/shopify-design/cart-add-an-agree-to-terms-and-conditions-checkbox/td...
Do you have any suggestion how to make it work?
My shop is csoppmesek.hu
Thank you!
Solved! Go to the solution
This is an accepted solution.
I have found the answer in the meantime:
besides following the steps in the blog (https://community.shopify.com/c/shopify-design/cart-add-an-agree-to-terms-and-conditions-checkbox/td...) , you also need to add the following code to the theme.liquid file before the </head> tag.
<link rel="preload" href="https://code.jquery.com/jquery-2.2.4.min.js" as="script">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
This is an accepted solution.
I have found the answer in the meantime:
besides following the steps in the blog (https://community.shopify.com/c/shopify-design/cart-add-an-agree-to-terms-and-conditions-checkbox/td...) , you also need to add the following code to the theme.liquid file before the </head> tag.
<link rel="preload" href="https://code.jquery.com/jquery-2.2.4.min.js" as="script">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
thank you for cleaning this up, saved me a lot of time...
Does this work for the Dawn Theme? I went through the steps and it added it but no checkbox. So now my customer gts a popup screen saying the need to accept the terms but it doesn't give them the option to.
User | RANK |
---|---|
25 | |
22 | |
9 | |
6 | |
5 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023