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

Hura Product Showcase Builder

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!

Hura Theme Blocks

You may also like...

Leave a Reply

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