Question about checkboxes and coding

Hello people,

I have a problem regarding my digital products: my intentions were to have the users of the website check off a checkbox saying “Yes, I have read and agree to the Medical Waiver” before they can add the products to cart (the “add to cart” button should be unavailable before they click the checkbox). However, when I create a check box, the users are still able to add the products to cart without clicking the checkbox.
Wix tech support told me that this feature is currently unavailable in the wix editor, but it may be achieved through coding directly.

I was wondering if I can get any assistance with this?

Cheers

Indeed you won’t be able to prevent user from adding product to their cart. That API does not exist.

But you’ll need to create your own product pages, so that you can configure the button behavior to match your business logic

Another way of achieving that kind business logic is to hide the checkout button on the checkout page until the client has accept the terms

That could work. How do I go about doing that?