Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Move legal checkboxes right before order submit button (Germanized > 2.X)
add_action( 'init', 'my_child_move_legal_checkboxes', 50 );
function my_child_move_legal_checkboxes() {
// Remove
remove_action( 'woocommerce_review_order_after_payment', 'woocommerce_gzd_template_render_checkout_checkboxes', 10 );
// Readd before submit button
add_action( 'woocommerce_gzd_review_order_before_submit', 'woocommerce_gzd_template_render_checkout_checkboxes', 10 );

This comment has been minimized.

Copy link

farhadmn commented Sep 3, 2019

I added the function into Snippet, but now the checkbox is displayed twice.



This comment has been minimized.

Copy link
Owner Author

vendidero commented Sep 4, 2019

Hi there,

you might need to check your theme - I've tested the snippet with Storefront and couldn't reproduce the problem.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.