I am looking for a way to add a radio button to the checkout in WooCommerce, which, when clicked, will remove the field in the checkout with the ID "billing_company_wi_vat". The field with this ID is set as required. I will be grateful for any advice.
Question posted in Woocommerce
The official Woocommerce documentation can be found here.
The official Woocommerce documentation can be found here.
2
Answers
If I understand you want to disable the billing address completely?
If yes, then here you are
}
add_filter( ‘woocommerce_billing_fields’, ‘cs_woocommerce_remote_billing_fields’ );
Maybe you have to check for custom checkout. At this point I think its the best option to change anything as you want instead to change in a wrong way the functionality of main checkout which may causes many problems in the future.
Friendly, George