Use an Agree to Terms Checkbox with Product Upsell


This is an unsupported theme customization. If you need help setting it up, Email our Support Wizards.

If you would like to use an "agree to terms" checkbox in your cart along with Product Upsell, follow these steps:

  1. From "Shopify Admin", select Online Store.
  2. Select ...
  3. Select Edit HTML / CSS.
  4. Under "Layout", select theme.liquid.
  5. Add this code above the </body> tag in the file: 
    function termCheck(){
    return true
    return false

    $('[name="checkout"], input[name="goto_pp"], input[name="goto_gc"]').click(function() {
    alert("You must agree with the terms and conditions of sales to check out.");
    return false;

  6. Select Save.
  7. From "Shopify Admin", select Apps.
  8. Select Product Upsell.
  9. Select Upsell Settings.
  10. Scroll down to the "Advanced Page Settings" section.
  11. Under "Checkout Upsell Page", in the Enter function to call before upsell field enter: termCheck().
  12. Select Save.

That's it!

Have more questions? Submit a request