0

We have a Woocommerce site built that has Terms & Conditions required to place your order. The problem is most people are not used to doing this and they either don't see or intentionally skip this step and click the "Place Order" button. When they do that it gives them an error message and forces them to refill the form. We would love it if the "Place Order" button was either hidden, grayed out, or in some way disabled until the customer agrees to the terms and conditions. I am sure for someone out there is just a few lines of code. Any help is appreciated.

0

HI jon you can write a js function to check if the terms check box has been checked

https://www.w3schools.com/jsref/prop_checkbox_checked.asp

add/remove a class on your place order button

https://www.w3schools.com/howto/howto_js_toggle_class.asp

or

https://www.w3schools.com/howto/howto_js_remove_class.asp

hope this has pointed you in the right direction

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.