Support

Home Forums Event Espresso Premium States/Provinces Packs doesn't work

States/Provinces Packs doesn't work

Posted: June 24, 2015 at 2:15 pm


Merlin

June 24, 2015 at 2:15 pm

After the last Update the States/Provinces Pack: Germany doesn’t work anymore.

Is there any solution?

thx


Lorenzo Orlando Caum

  • Support Staff

June 24, 2015 at 7:18 pm

Hi Merlin, those packs work by adding that data into your database. They do not need to be activated again once they have been initially activated.

What isn’t working?

Thanks


Lorenzo


Merlin

June 25, 2015 at 5:45 am

After the last Update i only see USA and Canada again. before there was the States/Provinces of Germany too. i have followed the installation on your website https://eventespresso.com/wiki/install-new-state-province-packs/ but in the main settings and anywhere else i can’t find them.

thanks for your help
thx in advance


Lorenzo Orlando Caum

  • Support Staff

June 25, 2015 at 9:53 am

Hi Merlin, I tested this on the 4.7.x platform and the provinces are appearing. Could you double-check that your settings look like this in the Countries tab when Germany is selected?

http://cl.ly/image/2O0E11373g0o

Note that Germany should appear in the dropdown list and the individual provinces should be enabled.


Lorenzo


Merlin

June 26, 2015 at 12:53 am

Nope, my settings looks like this:
https://www.dropbox.com/s/4f50zq8r77jgsd3/Bildschirmfoto%202015-06-26%20um%2008.45.57.png?dl=0
and this
https://www.dropbox.com/s/ts2bzfffr6mjj7d/Bildschirmfoto%202015-06-26%20um%2008.46.21.png?dl=0

i’ve tried to reinstall the provinces pack but nothing changed.


Lorenzo Orlando Caum

  • Support Staff

June 26, 2015 at 8:22 am

That is strange as the information doesn’t appear to be there at all.

Could you share a temporary login so we can continue troubleshooting?

https://eventespresso.com/send-login-details/


Lorenzo


Merlin

June 27, 2015 at 4:07 am

i’ve send the login to you…


Lorenzo Orlando Caum

  • Support Staff

June 29, 2015 at 9:33 am

Hi Merlin, we haven’t run into this before so I manually restored them through the Countries screen. Thanks


Lorenzo


Merlin

June 30, 2015 at 1:34 am

wow thank you very much for your help!! 🙂

EE has a really good support by the way…


Dean

June 30, 2015 at 5:00 am

Hi,

Anything else we can help with regarding this topic, or may we mark it as resolved?


Merlin

June 30, 2015 at 5:24 am

two thinks i’m working on.

first. is there a way to only show the states/provinces in the event-header? By now i managed it with <?php espresso_venue_name(); ?> but this is the name of the venue and and espresso_venue_address() shows me the whole address.

in the pic the marked red:
https://www.dropbox.com/s/vzmvl8e54ruh438/Bildschirmfoto%202015-06-30%20um%2013.17.46.png?dl=0

second. is there a way to sort events, maybe in the calendar, by locations (states)?

thx


Dean

June 30, 2015 at 6:05 am

Hi,

Well, in theory both should be possible, but both would require customisations beyond what support can offer. You could contact one of our recommended developers: https://eventespresso.com/developers/event-espresso-pros/

In brief I think that the first could be accomplished by either hooking into the event header (or more likely using a custom template tag as there doesn’t seem to be a hook available), and then calling the EE_Event class via the $post object.

The second is definitely more complex, though this example query would be a good starting point https://gist.github.com/joshfeck/e3c9540cd4ccc734e755

It’s unlikely that you would be able to filter by state in the calendar unless you did some major modifications.


Lorenzo Orlando Caum

  • Support Staff

September 12, 2015 at 11:59 am

Hello again Merlin,

We wanted to let you know about an enhancement in the current version of Event Espresso 4 that offers more flexibility for venue addresses.

First, please backup your WordPress site and upgrade to the latest release of Event Espresso 4:

https://eventespresso.com/wiki/ee4-changelog/

Next, there is some sample code in this link:

https://gist.github.com/lorenzocaum/5e2658a1f7e7a9a6b5c0

Here is an explanation of the sample code:

In the older versions of Event Espresso, you could change the formatting for the venue address. However, this would apply to all venue addresses. The new enhancement is more flexible as it allows you to change the formatting for certain countries.

In the example code, we have an entry for United Kingdom which has a country code of GB. Then we have the actual formatting which doesn’t include the province or the country name.

Just below that, we have an entry for Canada which has a country code of CA. In Canada, the zip/postal code appears as the end of the address so the formatting will show it in that order.

Below that is an entry for Germany which has a country code of DE with a specific formatting for the address (e.g. zip/postal code appears before the city).

Below that is another entry for Singapore which has a country code of SG with a specific formatting for the address.

New entries for additional countries could be added as needed.

If you have modified the venue address through an existing function, then you may consider switching to the new one mentioned in the link above.

Thanks!


Lorenzo


Merlin

September 15, 2015 at 6:13 am

hi lorenzo,

nice to hear… i’ve changed it in my functions.php.

thanks

The support post ‘States/Provinces Packs doesn't work’ 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