Customized Checkout fields in WooCommerce

How to Remove Billing fields from Checkout Page

If you are selling virtual products you might need much information and can reduce the form by asking few details. This code worked out for me.

To remove some address fields in billing address of checkout page you can use the code below.

// Removes billing fields from checkout page
add_filter( 'woocommerce_billing_fields', 'amn_billing_fields' );

function amn_billing_fields($fields){
 unset( $fields["billing_company"] );
 unset( $fields["billing_address_1"] );
 unset( $fields["billing_address_2"] );
 unset( $fields["billing_state"] );
 unset( $fields["billing_postcode"] );
 return $fields;

Add the above filter in functions.php file of your theme.

After adding above code




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a website or blog at

Up ↑

%d bloggers like this: