Last active
March 2, 2016 06:23
-
-
Save tamarazuk/0bb754e26c1292e113ce to your computer and use it in GitHub Desktop.
Move Checkout Add-ons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Reposition Checkout Addons to under Order Notes | |
function sv_wc_checkout_addons_change_position() { | |
return 'woocommerce_after_order_notes'; | |
} | |
add_filter( 'wc_checkout_add_ons_position', 'sv_wc_checkout_addons_change_position' ); |
Hi evryone
can someone help me,
if I want to move the checkout addons in to order details-shipping options table under shipping options
what code need to use?
thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tamarazuk I'm having some trouble setting this up, the original code just removes the addons altogether
and while the code provided by @Viure works, it makes the addons appear twice - it seems the remove_action doesn't work properly.