Support

Home Forums Event Espresso Premium Venues state issue

Venues state issue

Posted: August 26, 2015 at 6:25 am

Viewing 2 reply threads


Dhillon Kannabhiran

August 26, 2015 at 6:25 am

When state is not selected (as state is not comonly used outside us/ca) venue address includes “unknown” as part of the address.

Street name, Singapore, Unknown, SG, ZIP


Lorenzo Orlando Caum

  • Support Staff

August 26, 2015 at 7:06 am

Hi Dhillon,

Could you try adding the sample code in the following support post into your child theme’s functions.php file or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/)?

https://eventespresso.com/topic/unknown-and-gb-appearing-in-venue-address-when-viewing-event/#post-156611

Let us know if that helps.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

September 12, 2015 at 11:47 am

Hello again Dhillon,

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.

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

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

Viewing 2 reply threads

The support post ‘Venues state issue’ 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