Remove Address and Company Fields from WooCommerce Checkout

WooCommerce has the ability to remove the address and company fields in the checkout for. This is useful when you do not require the address fields as you may have a virtual or download only products that don’t require shipping.

You can remove address field layouts, so you have just name, email and phone. You can do this with the woocommerce_billing_fields filter. In your themes functions.php file, add the following code:

//remove some fields from billing form
function custom_billing_fields( $fields = array() ) {
unset($fields['billing_company']);
unset($fields['billing_address_1']);
unset($fields['billing_address_2']);
unset($fields['billing_state']);
unset($fields['billing_city']);
unset($fields['billing_postcode']);
unset($fields['billing_country']);
return $fields;
}

add_filter('woocommerce_billing_fields','custom_billing_fields');

This will remove or unset all the address fields.

Subscribe for Free Updates

Please enable the javascript to submit this form