Home Forums WoodMart support forum Using to Move Email fields at Top on Ckeckout Is it now compatible with woo

Using to Move Email fields at Top on Ckeckout Is it now compatible with woo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #495649

    harshwe
    Participant

    Hello Luke,

    We are using below code in funcstions.php of child theme, to move the Mobile and email fields at top, on the checkout page
    That is working since more than last 1 year and 8 months or so.

    1. Just wanted to know is this the correct one. And will it work with Latest woocommerce also. So just thought to ask you first. And hence still using 7.7.2 of woocommerce. And haven’t updated woo, just in case.

    /*move email and phone fields on top in checkout page 29 Jan 22 */
    add_filter( 'woocommerce_billing_fields', 'vas_move_checkout_email_field' );
     
    function vas_move_checkout_email_field( $address_fields ) {
        $address_fields['billing_email']['priority'] = 1;
    	$address_fields['billing_phone']['priority'] = 2;
        return $address_fields;
    }

    2. Is it safe to update the woocommerce plugin to the latest version 8.1.
    We are currently using 7.7.2

    2.b) Is your theme (version 7.2.4) also compatible with this woocommerce version 8.1

    Regards

    • This topic was modified 1 year, 5 months ago by harshwe.
    #496860

    Luke Nielsen
    Keymaster

    Hello,

    Sorry for the delay.

    1. That code is related to WooCommerce so I cannot tell you exactly, but you can check it on the staging site.

    2. Yep, it’s safe.

    2b. At the moment the 7.3.1 update is available for the theme. And yes, it should work well with 8.1 version.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)