Title: Problem with field ordering
Last modified: December 3, 2018

---

# Problem with field ordering

 *  Resolved [denniscomytec](https://wordpress.org/support/users/denniscomytec/)
 * (@denniscomytec)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/)
 * I need some help learning how to choose the order in which fields are presented
   on the checkout page on the frontend. As it is right now, it starts with First
   Name, then goes directly to Country and the Last Name is somewhere in the middle
   of the page. In the backend everything is organized in the right order. I’m running
   the latest version of WooCommerce and WooCommerce Checkout Manager.
 * Any help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-field-ordering%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [pacciugo](https://wordpress.org/support/users/pacciugo/)
 * (@pacciugo)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-10992866)
 * I’ve got the same problem.
    Any help would be appreciated
    -  This reply was modified 7 years, 5 months ago by [pacciugo](https://wordpress.org/support/users/pacciugo/).
 *  [rpavanello](https://wordpress.org/support/users/rpavanello/)
 * (@rpavanello)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11016049)
 * Same problem!
 *  [chemistrap](https://wordpress.org/support/users/chemistrap1/)
 * (@chemistrap1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11019339)
 * Hello guys,
    I have face same problem and i figured out re-order myself with 
   priority like:
 *     ```
       // alanlari yeniden sirala
   
       add_filter( 'woocommerce_default_address_fields', 'siralama_yeniden' );
   
       function siralama_yeniden( $fields ) {
   
         $fields['fatura_turu']['priority'] = 1;
         $fields['first_name']['priority'] = 2;
         $fields['last_name']['priority'] = 3;
         $fields['phone']['priority'] = 4;
         $fields['email']['priority'] = 5;
         $fields['company']['priority'] = 6;
         $fields['vergi_no']['priority'] = 7;
         $fields['vergi_dairesi']['priority'] = 8;
         $fields['state']['priority'] = 9;
         $fields['city']['priority'] = 10;
         $fields['address_1']['priority'] = 11;
         $fields['postcode']['priority'] = 12;
   
   
         return $fields;
       }
       ```
   
 * Just order as you wish all fields and give a number start from 1.
    -  This reply was modified 7 years, 5 months ago by [chemistrap](https://wordpress.org/support/users/chemistrap1/).
 *  [rpavanello](https://wordpress.org/support/users/rpavanello/)
 * (@rpavanello)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11019452)
 * Great!
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11067133)
 * Hi [@chemistrap1](https://wordpress.org/support/users/chemistrap1/), thanks for
   responding to this, I’ve been offline during vacation and am looking at this 
   as a high priority task.
 * Is this re-ordering issue affecting all Billing, Shipping and Additional Checkout
   fields or just Billing fields?
 *  [chemistrap](https://wordpress.org/support/users/chemistrap1/)
 * (@chemistrap1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11067554)
 * Hello [@visser](https://wordpress.org/support/users/visser/)
 * I just research and found that and i think it effects all fields ( billing & 
   shipping)
 * Thnx
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11071609)
 * I’m responding on the following primary topic related to this issue:
 * [https://wordpress.org/support/topic/this-plugin-doesnt-work-with-latest-version-of-woocommerce/](https://wordpress.org/support/topic/this-plugin-doesnt-work-with-latest-version-of-woocommerce/)
 * —
 * The lines #244-247 within /includes/class-wc-checkout.php (get_checkout_fields),
   are responsible for re-ordering the Checkout fields based on the priority detail,
   this change was introduced in 3.5.1 onwards. So we are sorting the Checkout fields,
   then returning it to WooCommerce and it is then re-sorting the Checkout fields
   again losing those changes we set.
 * I’ll ensure that we are using the priority detail as expected to comply with 
   this change.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11071685)
 * If you are using WooCommerce 3.5.1 and above please update to the 4.2.4 Plugin
   release that is now available. 🙂
 *  [chemistrap](https://wordpress.org/support/users/chemistrap1/)
 * (@chemistrap1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11073776)
 * Hello [@visser](https://wordpress.org/support/users/visser/)
    I have realized
   that you released a newest version to fixing ordering. And i deleted code’s snippet
   for ordering and updated newest version of this plugin but still i have facing
   same problem.
 * Do you have any idea?
    Thnx
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11075548)
 * Hi [@chemistrap1](https://wordpress.org/support/users/chemistrap1/), that new
   release will resolve that issue. It could be caching at play here, can you flush
   the cache and/or OPCache if enabled and see if this perists.
 * The latest release of WCM sets the required ‘priority’ attribute for all Checkout
   fields (Billing, Shipping and Additional) so that that section of lines #244-
   247 within /includes/class-wc-checkout.php (get_checkout_fields) runs as expected.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Problem with field ordering’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [Michael Visser](https://wordpress.org/support/users/visser/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-field-ordering/#post-11075548)
 * Status: resolved