How to add a condition’s checkbox to cart on Reach Shopify theme

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy the first month of Shopify for $1.

I’ve written an article to let you know how to add an “Agree to terms and conditions” checkbox to Shopify cart page. With Reach theme, you have 3 place to show cart: cart page, cart drawer and popup after add a product to cart. So the previous article is not working on cart drawer and cart popup.

This article will guide you add a condition’s checkbox to cart for Reach theme.

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the Reach theme, and then click Actions > Edit code.
  3. In the Snippets directory, find to cart.liquid file and click it to open.
  4. Find to the line <noscript>, paste the following code above this code:

  5. Click Save and you can close this file.
  6. In the Assets directory, find to a reach.js file and click it to open.
  7. Find to the line this.handlerHelpers.onResponse(cartResponse); paste the following code below this code:

  8. After that, go to the end and paste the following code:

  9. Click Save and you are done.

Happy coding!

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 *