Support » Plugin: WooCommerce » State before city

  • Resolved cristianciuberea

    (@cristianciuberea)


    Hello,

    How can i put state before city? I even use a plugin for this, Checkout Field Editor for WooCommerce, but it still show city before state.

    this sounds like a bug, this happen on any site i have.

    Can you take a look and fix it?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can use the priority for each billing and shipping field

    add_filter( 'woocommerce_default_address_fields', 'reorder_checkout_fields' );
      
    function reorder_checkout_fields( $fields ) {
     
       // default priorities: 
       // 'first_name' - 10
       // 'last_name' - 20
       // 'company' - 30
       // 'country' - 40
       // 'address_1' - 50
       // 'address_2' - 60
       // 'city' - 70
       // 'state' - 80
       // 'postcode' - 90
      
      // e.g. move 'company' above 'first_name':
      // just assign priority less than 10
      $fields['company']['priority'] = 8;
     
      return $fields;
    }
    Plugin Support RK

    (@riaanknoetze)

    Hi there,

    You could also make use of the dedicated extension that’ll provide you with a user interface to make those changes: https://woocommerce.com/products/woocommerce-checkout-field-editor/ 🙂

    Ok, thank you! solved

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.