Terms and conditions checkbox

The Sunrise theme provides a checkbox on the cart page to ask your customers to agree to your terms and conditions before they check out.

Enable or Disable the Feature

It’s an optional feature and if you don’t need it, you can switch it off through the theme settings. To do that, just click “Customize” next to your theme name and navigate to the cart page in the theme preview. Once you see the cart page, you’ll notice a new section appear in the sidebar named “Cart page”. Click that section and you’ll see an option to enable/disable the terms and conditions checkbox.

Controlling the Link

First of all, make sure that you’ve generated your terms of service policy as described in this Shopify doc…
Docs – Add or generate store policies

Once you’ve done that, you can go to your store front, add an item to the cart and click the terms and conditions link to check that it’s working.

Troubleshooting

If you get a “page not found” error when clicking the link on the cart page, use the language editor to double check that the link is pointing to the right policy as follows…

  1. Go to “Online store > Themes” and you’ll see an “Actions” dropdown next to your published theme.
  2. Choose “Edit Languages” from the dropdown
  3. Click the “Cart” heading and you’ll see all the text that’s used on the cart page
  4. Scroll down to the field that’s labelled “Agree terms html” and check that it contains the following text…
    href='/policies/terms-of-service'

    If yours contains…

    href='/pages/terms-and-conditions'

    replace it so that it looks like this…

    I agree with the <a href='/policies/terms-of-service' target='_blank'>terms and conditions</a>
  5. And don’t forget to save your changes