• function js_sort_checkout_fields( $fields ) {
    $fields[‘billing’][‘billing_email’][‘priority’] = 5;
    $fields[‘billing’][‘billing_first_name’][‘priority’] = 15;

    return $fields;
    }
    add_filter( ‘woocommerce_checkout_fields’, ‘js_sort_checkout_fields’ );

    I used this code because when leaving out ‘billing_first_name’ it did not work either. I want to make it so that email address is the first checkout field.

    TIA

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Give Email Priority over First Name’ is closed to new replies.