Remove billing details

How to Remove Billing Details From WooCommerce Checkout [Easy Guide]

Last update on:

It may be necessary for you to remove the billing information from WooCommerce checkout from time to time. You may have many reasons to remove it.

Whatever the reason, it’s straightforward to remove the billing details from a WooCommerce checkout. I’ll show you how.

There are two steps involved in removing billing details from your WooCommerce checkout. First, disable the billing fields using a plugin. Another one, hide the billing fields using a simple PHP code snippet.

Why Should You Remove Billing Details?

The billing details are the physical or home address of your customer. It is better to remove the billing information from the WooCommerce checkout page because it adds an extra field that customers have to fill out.

The following are some reasons to remove billing addresses from WooCommerce:

  • It increases checkout time since some customers must skip the billing address field.
  • You do not want your customer’s home address on your server.
  • You do not require a customer’s billing information if you sell digital products.
  • You made a mistake in your input, and you don’t want your customers to fix it.
  • Make checkout faster.
How to Remove Billing Details From WooCommerce Checkout [Easy Guide] 1

Remove Billing Fields in WooCommerce Checkout Page Manually

You can disable the billing fields in WooCommerce by editing the theme’s functions.php file.

Therefore, to complete the process without any hassle, you should install and activate a child theme for your parent theme. You should also take a backup of your entire site before doing this.

Add code-funcations php file

After activating and setting up your child theme, you need to add the following code to the functions.php file.

add_filter( 'woocommerce_checkout_fields' , 'remove_billing_fields_from_checkout' );
function remove_billing_fields_from_checkout( $fields ) {
    $fields[ 'billing' ] = array();
    return $fields;
}
after adding code
After adding the above PHP code snippet

How to Remove the Above Code If You Find any Fatal Error?

In my experience, there is no issue after adding the above code in the funcations.php file. But somehow if you find any issue or the site goes into a fatal error after implementing the above code, you must remove this code.

In these cases, you may not be able to access your site. Thus, the best way to remove is to use cPanel. Simply log in to your cPanel account, go to your File Manager, and go to your website directory.

Then go to WP-Content>Themes>your active theme (the theme you have used to implement the above code)>funcations.php file.

Open funcations.php file

Simply right-click functions.php, then select ‘Edit,’ and then again select ‘Edit.’

Edit functions.php file

Now find your code and remove them, and your issue will be resolved.

Remove Billing Details Using a Plugin

You can use a plugin rather than implementing code directly in your theme functions.php file to achieve the same results.

The WooCommerce Checkout Field Editor is a premium plugin that allows removing billing details from WooCommerce checkout. It costs $49 and isn’t worth the money unless you run a business that processes lots of online payments.

However, after installing and activating the plugin, a new menu item called ‘Checkout Field‘ will appear in the WooCommerce menu section.

Once you’ve opened the Checkout Field Editor, you can see a list of all the fields that are currently being used during the checkout process. You can enable or disable any of these fields by clicking the checkmark.

Edit checkout fields

With the checkout field editor, you can set and remove specific fields for the checkout billing page. I think the plugin is helpful for people who want to customize the checkout fields. Otherwise, it would be better to remove all fields from the above code.

Some other advanced free & premium plugins for editing the WooCommerce checkout page are:

In Conclusion

Generally, removing the billing address from the WooCommerce store is a good idea to speed up the checkout process for your customers. Using the above code or plugin will help you do this.

If you are a complete beginner, I always recommend using plugins instead of code. However, you can apply the above code by following this tutorial.

If you have any questions, please feel free to leave a comment below.

Author

  • Sonya Sultana

    Sonya Sultan is a content writer for WordPress and small businesses. She has been writing content since 2020 with full energy & passion. When she has free time, she watches her favorite TV shows and reads novels.

1 thought on “How to Remove Billing Details From WooCommerce Checkout [Easy Guide]”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Saeed Khosravi