Move email form to top of WooCommerce checkout page

TIPS

Nov 23, 2020 | WooCommerce Tips | 0 comments

Add the following PHP code to your child theme functions.php file.
[php]
/*
Move email form to top of Woocommerce checkout page
*/
add_filter( 'woocommerce_billing_fields', 'custom_woo_move_checkout_email_field', 10, 1 );
 
function custom_woo_move_checkout_email_field( $address_fields ) {
    $address_fields['billing_email']['priority'] = 5;
    return $address_fields;
}
[/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields