Website Building » WooCommerce » How Do I Remove a Company Name From WooCommerce Checkout?

How Do I Remove a Company Name From WooCommerce Checkout?

Last updated on October 1, 2022 @ 5:12 pm

If you’re using WooCommerce to sell products or services online, you may want to remove the company name field from the checkout process. By default, WooCommerce includes a company name field on the checkout page, but this isn’t always necessary, especially if you’re only selling to individuals.

There are two ways to remove the company name field from WooCommerce checkout. The first method is to simply disable it from the WooCommerce settings page. The second method is to edit the code of your theme, which we’ll cover in more detail below.

How to Remove Company Name Field from WooCommerce Checkout Using Settings

The easiest way to remove the company name field from WooCommerce checkout is to simply disable it from the settings page. You can find this option by going to WooCommerce > Settings > Checkout. On the Checkout tab, scroll down to the Company Name section and uncheck the “Enable Company Name Field” checkbox.

How to Remove Company Name Field from WooCommerce Checkout by Editing Code

If you want more control over where the company name field appears on the checkout page, or you want to completely remove it, you’ll need to edit your theme’s code. The company name field is added by default in the billing_fields array. To remove it, you’ll need to add a filter that removes it from that array.

PRO TIP: If you are planning to remove a company name from WooCommerce checkout, it is important to note that this may impact your ability to process payments. Before making any changes, we recommend that you reach out to your payment processor to confirm that this will not cause any issues.

add_filter( 'woocommerce_billing_fields', 'remove_company_name_from_checkout', 10, 1 );

function remove_company_name_from_checkout( $fields ) {

unset( $fields['billing_company'] );

return $fields;

}

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.