• Resolved bttmrc

    (@bttmrc)


    Hello,

    I set 110 as the position of the VAT FIELD and it does work in the checkout page. However, in the edit-account – address page, the field goes to the bottom and its messing up the layout. Is there something we can do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Diego

    (@daigo75)

    Reply

    You can change the position of the field on the My Account page by using a custom filter, in a similar way to the checkout field. The difference is the filter name, which is woocommerce_billing_fields, instead of woocommerce_checkout_fields.

    Something like the following should work:

    
    add_filter('woocommerce_billing_fields', function($billing_fields) {
      // The lower the priority, the higher on the page the field will appear
      // A value of "35" should position the field below the "Company Name"
      $billing_fields['vat_number']['priority'] = 35;
    
      return $billing_fields;
    }, 99);
    
    Thread Starter bttmrc

    (@bttmrc)

    Worked like a charm, thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘field position on edit-account page’ is closed to new replies.