Adding a checkbox to the checkout or cart page

Hi,

I would love to add a checkbox to my cart or checkout page that would contain something “Confirming a purchasing policy” and without clicking on this checkbox, checkout would not be available.

Here is my website : https://oleum.lt/cart

I hope you guys will help me!

Here you find code and steps to add checkbox on cart page.
https://ui-elements-generator.myshopify.com/pages/cart-attribute
But to make the checkout disable without checkbox checked you need to write a script.

Hello @Nickitoz

Welcome to Shopify Community

Please follow the steps from the documentation >> here. If you face any setup issues do let me know.

Thanks

I was wanting to do the same. However, I don’t have the liquid cart files that keep being referred to. I am using the Craft Template from Shopify. Please advise. I am needing a check box with text, required before completing sale.

Hi @Nickitoz :smiling_face_with_three_hearts:

If your goal is to add a required checkbox for confirming a purchasing policy, then Easify Product Options can handle this easily.

I’ve created a similar demo to help you better visualize how it works:

  • This is the result:

  • This is the app setting:

You just need to create a checkbox option with a label like “Confirming a purchasing policy” and enable the Required setting so customers must tick it before proceeding. This option can be displayed directly on the product page alongside other options (like engraving, charms, etc.).

Once set up, customers won’t be able to add the product to cart unless the checkbox is selected. After they confirm, they can continue the purchase as usual.

This approach ensures customers acknowledge your policy without needing to modify the checkout (which Shopify restricts), and it’s quick to set up with a clean, user-friendly interface.:heart:

On Shopify, you can’t control this on checkout (unless you’re on Plus), so the best way is to add it on the cart page.

you can do below instead:
1. Add a checkbox on cart
2. Disable the Checkout button until it’s checked

I confirm the purchasing policy