Checkout4 min read

How to Make a Terms and Conditions Checkbox Required in Shopify

A terms checkbox in the Shopify cart is only required if checkout checks it too. How to validate it so buyers can't skip it with Buy it now.

In this guide
  1. Why do buyers check out without ticking my checkbox?
  2. What does “validated at checkout” mean?
  3. How do I set up a required checkbox?
  4. How do I test that the checkbox can’t be skipped?
  5. Where can I see that a buyer agreed?
  6. Who needs a required terms checkbox?
  7. FAQ

A terms and conditions checkbox in your Shopify cart is only truly required if it is also checked at checkout. If the check runs only in the cart, a buyer can skip it with a button such as Buy it now, which goes straight to checkout. To keep the box required, show it in the cart and validate it again at checkout.

This post explains why cart-only checkboxes get skipped, how to set up a checkbox that checkout validates, and how to test it. It is not legal advice: ask a professional what your terms need to say.

Why do buyers check out without ticking my checkbox?

Many merchants add a terms checkbox to the cart page and still find orders without the box ticked. The usual cause is that the rule lives only in the cart.

Shopify’s dynamic checkout buttons skip the cart: “When a customer clicks an unbranded button, they skip the cart and go to the Shopify Checkout.” A buyer who never sees the cart page never sees the checkbox, so it can’t stop them. The same goes for express buttons and for a checkbox that was added to the cart page but not to the cart drawer.

What does “validated at checkout” mean?

Shopify lets apps run a cart and checkout validation function. Before the buyer can pay, it reads the cart, including the buyer’s answers, and can stop checkout with a message.

So the checkbox has two parts:

  1. In the cart, the buyer ticks the box. The answer is saved with the cart.
  2. At checkout, the validation reads that answer. If the required box was not ticked, the buyer can’t complete the order and sees a message asking them to go back to the cart.

The second part is what turns a checkbox that is only shown into one that is required.

Where the check runs Buyers who check out from the cart Buyers who use Buy it now or express buttons
Only in the cart Stopped until the box is ticked Not stopped
In the cart and at checkout Stopped until the box is ticked Stopped and sent back to the cart

For a longer comparison, including checkout fields on Shopify Plus, see Shopify Terms and Conditions Checkbox That Buy It Now Can’t Skip.

How do I set up a required checkbox?

The setup has four steps, whichever tool you use:

  1. Add the checkbox to the cart. Show it above the Check out button, mark it as required and link your policy page, such as /policies/terms-of-service, so buyers can read your terms before they agree. Save the answer as a cart attribute.
  2. Show it in the cart drawer too. If your theme opens a drawer when a product is added, the checkbox has to be there as well as on the cart page.
  3. Check the answer at checkout. This is the step that stops buyers who skip the cart: a validation function reads the cart attribute and blocks checkout while the box is not ticked. Without it, only the cart asks for the box.
  4. Test it yourself. Follow the checks in the next section before you rely on it.

How do I test that the checkbox can’t be skipped?

Go through checkout yourself once for each path:

  1. Add a product to the cart, leave the box unticked and try to check out from the cart page.
  2. Do the same from the cart drawer, if your theme has one.
  3. Use Buy it now on a product page.
  4. Use an express button, if your store shows them.
  5. Tick the box, place a test order and open it.

For each path, check that you can’t pay without agreeing, that the message tells you what to do, and that the order shows the answer.

Where can I see that a buyer agreed?

When the checkbox saves a cart attribute, the answer stays on the order under Additional details, and Shopify’s order CSV export has a Note Attributes column with those values. That lets you look up what a buyer agreed to when a question comes up later.

A ticked box records that the buyer clicked it. It does not write your terms or make them fair or complete. That part stays with you.

Who needs a required terms checkbox?

Shops that need consent before an order is placed. Examples are made-to-order items, goods that can’t be returned, rentals, and pickup rules. If you also need a delivery date or a note before the order is placed, see how to add a delivery date picker to the Shopify cart.

FAQ

Does a required checkbox work with Buy it now? Yes, if checkout also validates it. With a validation at checkout, Buy it now can’t skip a required checkbox.

Do I need Shopify Plus? Not for this setup. Shopify lets stores on any plan use validation functions from public apps on the Shopify App Store. A checkbox inside the checkout steps is a checkout field, which needs Shopify Plus.

Can the checkbox show in the cart drawer too? Yes, and it should. A checkbox that is only on the cart page is missed by buyers who check out from the drawer.

Does the checkbox appear on the checkout page? No. The checkbox lives in the cart. Checkout only checks the answer and shows a message if it is missing.