Created
May 8, 2019 19:18
-
-
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)
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 | |
// 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