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

Hura Product Showcase Builder

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.
Hura Theme Blocks

You may also like...

Leave a Reply

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