Remove Billing Detail Fields from WooCommerce Checkout Page

Default WooCommerce checkout form comes with several fields for customers to enter their billing details. But in some cases, you might want to hide  some of these fields. For example, if you are selling only virtual products, you can get rid of fields like billing address.

Quick Tip : How to make Phone Number field non-mandatory on WooCommerce checkout page

Use the following code snippet to remove or hide fields from WooCommerce checkout page.

//Remove Billing Details Fields from WooCommerce Checkout Page
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
 
function custom_override_checkout_fields( $fields ) {
    unset($fields['billing']['billing_first_name']);
    unset($fields['billing']['billing_last_name']);
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_1']);
    unset($fields['billing']['billing_address_2']);
    unset($fields['billing']['billing_city']);
    unset($fields['billing']['billing_postcode']);
    unset($fields['billing']['billing_country']);
    unset($fields['billing']['billing_state']);
    unset($fields['billing']['billing_phone']);
    unset($fields['order']['order_comments']);
    unset($fields['billing']['billing_email']);
    unset($fields['account']['account_username']);
    unset($fields['account']['account_password']);
    unset($fields['account']['account_password-2']);
    return $fields;
}
Remove Billing Details Fields from WooCommerce Checkout Page

Remove Billing Details Fields from WooCommerce Checkout Page

 

 

I hope that this tutorial was help. In case, you have any queries, feel free to comment.

6 Comments

  1. Hi there Harshal
    Thanks for the code – it worked great. How do we get rid of the “Billing Details” and “Additional Information” headings in the checkout? We have a dowloadable product and want people to go straight to their order information.
    Thank you! Love your work! 🙂
    K & K

    Reply
  2. To hide the title : “additionnal Information” on the checkout, I don’t know where you use this code exactly.
    Thanks in advance.

    Reply

Leave a Comment.