In this video I talk about how to customise your WooCommerce checkout fields. These are the pieces of information collected on your WooCommerce checkout page.
If like me you sell virtual products, all of the physical delivery details are not required and may add to cart abandonment. I suggest you trim the fields that are not required on your checkout.
Video Notes
Past the following code in the theme functions file, go to appearance -> editor and open functions.php.
You can remove some of the field exclusions if you want to keep them in
add_filter( ‘woocommerce_checkout_fields’ , ‘nm_simplify_checkout_virtual’ );
function nm_simplify_checkout_virtual( $fields ) {
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’]);
add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’ );
return $fields;
}
If you are a Wuss there is a plugin to do the same 🙂
Wrap Up – How To Customise Your WooCommerce Checkout Fields
If you need help customizing your WooCommerce checkout please do get in touch.
Doing the seo dance again how to customise your WooCommerce checkout fields.