One of the first things I always do on a new WooCommerce site build is move the email field to the top of the checkout page. This is a good practice because as soon as we get the email, we can trigger abandoned cart email sequences.
WooCommerce hooks make life very, very easy.
add_filter( 'woocommerce_billing_fields', 'seanaus120_move_checkout_email_field', 10, 1 );
function seanaus120_move_checkout_email_field( $address_fields ) {
$address_fields['billing_email']['priority'] = 5;
return $address_fields;
}
In action on our agency website a few other places like here, here, here, here and here.
Top comments (0)