How to add an “Agree to terms and conditions” checkbox to Shopify cart page

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

If you want to have a “Terms and Conditions” checkbox on the Shopify cart page, which the customers have to agree to in order to proceed with their purchase, then you’ll have to follow a few simple steps:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. In the Assets directory, find a javascript file and click it to open.
  4. At the bottom of the file, paste the following code:
  5. Click Save.
  6. In the Sections directory, click cart-template.liquid. If there is no cart-template.liquid file in the Sections directory, then click cart-template.liquid or cart.liquid in the Templates directory.
  7. Find the HTML code for your checkout button. Look for a <button> or an <input> element with the name attribute set to checkout. The code might look something like this:

    On a new line above the checkout button, paste the following code:

    Within the code you just pasted, replace /pages/terms-and-conditions with the URL of your terms and conditions page.

  8. Click Save.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *