Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/343eed2ded4a749639becf87482354f0 to your computer and use it in GitHub Desktop.
Save clifgriffin/343eed2ded4a749639becf87482354f0 to your computer and use it in GitHub Desktop.
Move EU VAT Number field to shipping tab for CheckoutWC (https://www.checkoutwc.com)
<?php
// Do NOT include the opening php tag.
// Place in your theme's functions.php file
add_action( 'wp', 'move_eu_vat_number_field' );
function move_eu_vat_number_field() {
remove_action( 'woocommerce_after_checkout_billing_form', array( 'WC_EU_VAT_Number', 'vat_number_field' ) );
add_action( 'cfw_checkout_after_customer_info_address', array( 'WC_EU_VAT_Number', 'vat_number_field' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment