Reduce Checkout Friction By Reducing Fields

Get A No Obligation Quote

Do You Need Help With Your WooCommerce Store?

Click through to the next page and complete the form to get a free no obligation quote to fix any issue you are having with your WooCommerce store.

Date

How To Add Code Snippets

Here’s a link to my other post about adding code snippets

// Hook in
add_filter( 'woocommerce_checkout_fields' , 'wooace_custom_override_checkout_fields' );

// Our hooked in function - $fields is passed via the filter!
function wooace_custom_override_checkout_fields( $fields ) {

	unset($fields['billing']['billing_company']);
	unset($fields['billing']['billing_phone']);
	unset($fields['order']['order_comments']);


     return $fields;
}

// Removes Order Notes Title - Additional Information & Notes Field
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );

WooCommerce Checkout Fields

  • Billing
    • billing_first_name
    • billing_last_name
    • billing_company
    • billing_address_1
    • billing_address_2
    • billing_city
    • billing_postcode
    • billing_country
    • billing_state
    • billing_email
    • billing_phone
  • Shipping
    • shipping_first_name
    • shipping_last_name
    • shipping_company
    • shipping_address_1
    • shipping_address_2
    • shipping_city
    • shipping_postcode
    • shipping_country
    • shipping_state
  • Account
    • account_username
    • account_password
    • account_password-2
  • Order
    • order_comments
https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

15 Day Free Trial Of Woo Ace Support

Why not take a 15 day free trial of Woo Ace and we will reduce friction on your checkout for you.

Get A No Obligation Quote

Do You Need Help With Your WooCommerce Store?

Click through to the next page and complete the form to get a free no obligation quote to fix any issue you are having with your WooCommerce store.

More
articles