Start a project
How we helpAppsDemoProjectsBlogDocs Support Start a project

A terms and conditions checkbox on Shopify: where it has to go

Lisive team5 min read

Where in Shopify

  1. Online Store
  2. Themes
  3. Cart
On this page 5 sections

Some stores need buyers to tick “I agree to the terms and conditions” before they pay: made-to-order products with no returns, rentals, pre-orders with a long wait, or anything sold under special conditions. Shopify doesn’t have this box built in, so it has to be added to the theme, and the hard part is less the box itself than making sure buyers can’t get to checkout without seeing it.

What Shopify does by default

When you add policies under Settings › Policies (return policy, privacy policy, terms of service, shipping policy and so on), Shopify links them automatically in the footer of the checkout pages, under “Terms and policies”. Buyers can open them, but nothing asks them to agree.

You can’t add your own checkbox to the information, shipping or payment steps of checkout unless you’re on Shopify Plus. Apps that add blocks to those steps use checkout UI extensions, and Shopify only allows those on Plus. On every other plan the checkbox has to sit in the theme, before the buyer leaves for checkout.

Every place checkout can start

A checkbox under the Checkout button on the cart page isn’t enough on most themes, because buyers can reach checkout from several places:

  1. The cart page, through the Checkout button
  2. The cart drawer or mini cart that slides in when something is added, which has its own Checkout button
  3. The product page, if the theme shows dynamic checkout buttons such as “Buy it now”, Shop Pay, PayPal or Google Pay
  4. Express checkout buttons on the cart page or in the drawer

Three storefront screens, a product page, a cart drawer and a cart page, each with an “I agree to the terms” checkbox above its checkout button The same checkbox has to appear before each button that leads to checkout.

If the box is only on the cart page, a buyer who uses the drawer or “Buy it now” skips it. So the checkbox needs to appear, and be required, in each of these places, or you need to turn off the ones you can’t cover. Dynamic checkout buttons can be switched off in the theme editor on the product section if you’d rather send everyone through the cart.

There are also ways into checkout that never touch the theme: abandoned checkout emails, draft order invoices and checkout links you share. A theme checkbox can’t cover those, so if agreement really matters, also mention the terms in the product description and order confirmation.

Making the box required

A checkbox only helps if the Checkout button doesn’t work until it’s ticked. In practice that means the theme or app has to stop the click and show a message when the box is empty. Test this rather than assume it: some themes rebuild the cart drawer with JavaScript every time the cart changes, which can remove a checkbox that was added once on page load, or bring back the Checkout button without the check.

Two cart screens side by side: on the left the box is not ticked, a message asks the buyer to agree and checkout is blocked; on the right the box is ticked and the Checkout button works Without the tick, the click on Checkout is stopped and the buyer sees why.

The text next to the box should link to your terms page. Shopify serves it at /policies/terms-of-service once you’ve added it under Settings › Policies.

Doing it with RT: Terms and Conditions Box

We wrote the original version of this guide for RT: Terms and Conditions Box, a terms checkbox app built by RoarTheme. It adds the box through a theme app extension, so it works without editing theme code, and it has a manual placement mode for themes where the automatic position doesn’t fit. The steps below follow the full setup guide on roartheme.co, which has screenshots for the Concept theme.

Before you start, install the app, turn on its app embed in the theme editor, and turn the app status on in the app. Your store needs at least one product, and if the storefront is password-protected, open it once and enter the password so the placement tool can load your cart.

In the app’s Setup tab, pick your theme and confirm. The app checks that it matches the live theme. To choose the position yourself, click “No, I want to select placement manually”, then “Start placement setup”. This opens your cart page in a new tab. Hover over the element you want the box next to, usually the Checkout button, and choose “Insert Before” or “Insert After”. Click Next.

A cart page with the Checkout button outlined, a preview of the checkbox above it, and a panel with Insert Before and Insert After buttons Manual placement: pick the element on your cart page, then choose whether the box goes before or after it. Illustration, not a screenshot of the app.

The next screen does the same for the cart drawer. Open the drawer the way your theme does it (on most themes, by clicking the cart icon), pick the element and choose before or after. If your theme has no drawer, skip this step.

The last step covers the “Buy it now” and other dynamic checkout buttons on the product page. You only need it if your theme shows them.

Check it on a real order path

After setup, test as a buyer on desktop and on a phone: add a product and try to check out from the cart page, from the drawer and with “Buy it now”, first without ticking the box and then with it. Each attempt without the tick should be stopped. If one gets through, that path isn’t covered yet.

RoarTheme’s support team helps with themes that need custom placement and usually replies within 8 hours, according to their guide.

Sources

Need help with your store?

Send us your store URL and what you want to set up. The Operator team is available 24/7.