Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Filter for terms checkbox on checkout page #3088

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Member

InoPlugs commented May 3, 2013

German/Austrian law forces the shop owner to display the "accept terms, etc." checkboxes ABOVE the "submit" button. We can use hooks like the "woocommerce_review_order_before_submit" action to insert the checkbox code but we can't remove the default terms checkbox - thus the new hook.

Contributor

coenjacobs commented May 6, 2013

@InoPlugs Not that I do not want to merge this in, but I'm struggling to find a use case for it. Why exactly would you like to do this and are there not better ways to do it (change the label of the default checkbox for example)?

Member

InoPlugs commented May 6, 2013

The problem is the order of the input fields. In Germany/Austria it must be:

- Agree to TOS
- Agree to "Right of revocation" clause

- Send order.

At the moment the "Send Order" button is above the check boxes for

- Agree to TOS
- Agree to "Right of revocation" clause

which is problem because the standard layout is now:

- Send Order
- Agree to TOS
- Agree to "Right of revocation" clause

and that's not allowed. Of course you could use floats, etc. to display the checkboxs & the button side by side but this sometimes isn't possible (eg responsive layouts & small screens, etc.). So what we have to do is to use the "woocommerce_review_order_before_submit" action to insert the check boxes before the "Send Order" button but then we have a structure:

- Agree to TOS
- Agree to "Right of revocation" clause

- Send Order

- Agree to TOS

because we can't remove the last (default) "Agree to TOS checkbox" at the very end. I hope you understand what I mean :)

It's not a problem of the label but a problem of the html structure and missing option/hook to remove the default "Terms checkbox".

Another use case would be a shop owner who wants to set a "tos" page without displaying the terms checkbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment