Support

Home Forums Event Espresso Premium State/Provinces

State/Provinces

Posted: May 18, 2017 at 3:40 pm

Viewing 1 reply thread


Fitness Universe

May 18, 2017 at 3:40 pm

We’re trying to upload states/provinces to countries (not provided by EE) using the PHP files from the State/Province Packs link as a reference. For example, Viet Nam:
https://pastebin.com/WZkCpagn

For some reason, the states/provinces do not show up and we were wondering why.

The things that weren’t changed in the PHP were the ‘CNT_ISO,STA_abbrev’ parts. Things like the file names of the zip were done randomly as well. We weren’t sure what we were doing wrong or what needed to be changed to make this work. Any suggestions?


Josh

  • Support Staff

May 18, 2017 at 7:50 pm

Hi John,

It’s probably this line of code:

$installed = get_option( 'ee_bahamas_states_provinces_added');

followed by:

if ($installed) return;

Since you’ve already installed a State pack for the Bahamas, any further packs will not install and instead return (the function execution stops on the return). So what you can do instead is do something like:

$installed = get_option( 'ee_vietnam_states_provinces_added');

and so on.

Viewing 1 reply thread

The support post ‘State/Provinces’ 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