Skip to content

Instantly share code, notes, and snippets.

@tamarazuk
Last active March 2, 2016 06:23
Show Gist options
  • Save tamarazuk/0bb754e26c1292e113ce to your computer and use it in GitHub Desktop.
Save tamarazuk/0bb754e26c1292e113ce to your computer and use it in GitHub Desktop.
Move Checkout Add-ons
<?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' );
@mhallor
Copy link

mhallor commented Nov 23, 2015

@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.

@torcat
Copy link

torcat commented Mar 2, 2016

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