• collinsavenue

    (@collinsavenue)


    In another topic you said custom positioning should be done by using checkout page hooks in your theme or custom plugin.

    What is the right code to change priority for search field and button?
    I need to move these two sections under company name.

    I tried

    add_filter( 'woocommerce_checkout_fields', 'reorganize_billing_checkout_fields' );
     
    function reorganize_billing_checkout_fields( $checkout_fields ) {
      $checkout_fields['billing']['billing_email']['priority'] = 4;
      $checkout_fields['billing']['billing_phone']['priority'] = 25;
      $checkout_fields['billing']['billing_company']['priority'] = 26;
      $checkout_fields['billing']['autofill_checkout_field']['priority'] = 27;
         return $checkout_fields;
    }
    

    But this only duplicates the search field and messes things up.
    Can you help please?
    Thank you.

  • The topic ‘Custom positioning for Search field and Current location button’ is closed to new replies.