Hello @liquidedge,
Thanks for writing in!
It’s quite weird. I’ve set the fields billing_abn_number
and billing_gst_number
to Disabled and still wasn’t working. I’ve also deactivated plugins, and can see you have no JS errors on the console.
Can you try adding the code below into the functions.php
of your X child theme, and let us know how it goes?
function wc_ninja_remove_checkout_field( $fields ) {
if ( $fields['billing']['billing_company'] == 'Australia' )
unset( $fields['billing']['billing_abn_number'] );
unset( $fields['billing']['billing_gst_number'] );
return $fields;
}
add_filter( 'woocommerce_checkout_fields' , 'wc_ninja_remove_checkout_field' );
Thank you.