Support

Home Forums Event Espresso Premium EE4 Changing order of State/Province displayed

EE4 Changing order of State/Province displayed

Posted: March 5, 2015 at 2:36 pm

Viewing 2 reply threads


John Ballment

March 5, 2015 at 2:36 pm

Hi

I’ve currently got US, Canada, UK, India and Australia set up as countries with States/Provinces in EE4. As the event is occurring in Australia and most of the registrants will be from Australia (we are expecting 80/20 split between local and international) is there a way to make Australian states come up first in the list?

Regards

John.


Lorenzo Orlando Caum

  • Support Staff

March 5, 2015 at 3:27 pm

Hi John, there isn’t currently a way to re-order the state/provinces but I can share an example of how to set one of them to be the default. If you do this for Australia, then those will be the first for selection since they are clustered together.

Try this sample coding:

https://gist.github.com/lorenzocaum/8be1acdc17c51234f081

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Your page ID for the registration checkout page is 10 so you can change 123 in the example to 10.


Lorenzo


John Ballment

March 5, 2015 at 7:39 pm

Hi Lorenzo

I’ve implemented your suggested workaround and it works perfectly, thank you.

Regards

John.

Viewing 2 reply threads

The support post ‘EE4 Changing order of State/Province displayed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso