Support

Home Forums Event Espresso Premium Countries and States

Countries and States

Posted: August 24, 2016 at 3:21 pm

Viewing 10 reply threads


kbayegan@gmail.com

August 24, 2016 at 3:21 pm

My client is offering online courses and, therefore, has registrants from many countries. I know that I can add countries and their states/provinces either manually or through country packs add-ons.

However, the big problem is the stat/province dropdown box. There, I end up with a huge list of many countries and states, in no particular order, it seems.

Is there a way to have the state dropdown box dependent on the country field and show only provinces of the selected country? If that is no at all possible, is there a way, at least, to put the country/states in alphabetical order? The way it looks now is very chaotic.


Josh

  • Support Staff

August 25, 2016 at 6:16 am

Hi there,

It turns out that the states should be in an alphabetical order. For example, if you have installed the state packs for Mexico, Canada, and the United States, the very first Country listed in the States list will be
Aguascalientes,
followed by all of the other states of Mexico in alphabetical order.
Then after the Mexico states there will be
Alabama,
followed by all of the other United States states in alphabetical order.
Then after the United States states there will be
Alberta,
followed by all of the other Canadian provinces in alphabetical order.

So while at first glance it may seem chaotic because the country groups within the select options are in the order of
Mexico, United States, Canada,
the sort is targeting the first State option of each group, ordered A-Z.

Is there a way to have the state dropdown box dependent on the country field and show only provinces of the selected country?

Not yet, but there is a ticket that’s assigned to a developer to add this to Event Espresso core. I will update this thread when this has been added.

is there a way, at least, to put the country/states in alphabetical order?

Update: No longer needed because of the feature added in 4.9.13.p.

  • This reply was modified 8 years ago by Josh. Reason: Updated with new information


kbayegan@gmail.com

August 25, 2016 at 7:15 am

Thank you very much. It works fine. Just one little glitch: now it selects Alabama as the default choice, I guess because it is alphabetically the first. How would you change the code so that there is no default selection. I looked, but I can’t find where the default is chosen.


Josh

  • Support Staff

August 25, 2016 at 8:58 am

Oh yeah, that happens in Chrome. Can you try the updated gist?


Josh

  • Support Staff

September 28, 2016 at 3:14 pm

Is there a way to have the state dropdown box dependent on the country field and show only provinces of the selected country?

Update: This was added in 4.9.13.p.


kbayegan@gmail.com

September 28, 2016 at 4:20 pm

I have 4.9.12. Is 4.9.13 out yet?

Also, on the registration page, the “state/Province” field comes before the “Country” field. How would I reverse that to take advantage of this improvement?


kbayegan@gmail.com

September 28, 2016 at 4:25 pm

Should my site plugins tell me to upgrade? I don’t see it. Why?


Josh

  • Support Staff

September 28, 2016 at 4:45 pm

I have 4.9.12. Is 4.9.13 out yet?

Yes.

Also, on the registration page, the “state/Province” field comes before the “Country” field. How would I reverse that to take advantage of this improvement?

You go to edit the question group that has your State and Country questions (Address Question Group). Then you drag the Country question and drop it so it’s just before the State question.

Should my site plugins tell me to upgrade? I don’t see it. Why?

Eventually it will. What happens is the Plugin updater client on your site will ping ee.com every 24 hours to check for updates. You can force it to check right now by going to your WP dashboard, then Event Espresso > General Settings, then click the Save button.


kbayegan@gmail.com

September 28, 2016 at 6:01 pm

Just upgraded to 4.9.13. I am now seeing a list of all countries and states/provinces in TEXT (very long list) right on the registration page. If there is no quick fix for this, how can I revert back to 4.9.12?

See partial screenshot: https://dl.dropboxusercontent.com/u/4461710/Screen%20Shot%202016-09-28%20at%207.56.19%20PM.png


Josh

  • Support Staff

September 29, 2016 at 6:08 am

Did you remove the temporary work-around posted earlier?


kbayegan@gmail.com

September 29, 2016 at 7:02 am

In fact, I had not. That did the trick. Thank you.

Viewing 10 reply threads

The support post ‘Countries and States’ 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