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.
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;
}