Support

Home Forums Event Espresso Premium Collation for address in event registration form incorrect. Country abbreviated

Collation for address in event registration form incorrect. Country abbreviated

Posted: September 6, 2014 at 2:12 pm


Michael Calonje

September 6, 2014 at 2:12 pm

Hello,

When previewing the registration page for an event, I realized that the venue and address of the event is listed at the bottom of the form. Unfortunately, the collation in the address section seems to be incorrect.

It is currently: Cra 32D Nº 9 – 17, MedellínCO

It should be: Cra 32D Nº 9 – 17, Medellín, Colombia

In otherwords, there is a comma and space missing after the city (Medellín), and the country should show up with the full name, not the abbreviated ISO code.

Does anyone know where in eventespresso I would have to go in order to correct this?

thanks,
Michael


Michael Calonje

September 6, 2014 at 2:19 pm

I forgot to mention that I am running the latest version of EE4 with no additional add-ons. It was downloaded yesterday.

Wordpress version is 4.0.

thanks,
Michael


Sidney Harrell

September 10, 2014 at 10:04 pm

How exactly do you have the address laid out in the admin?
Have you made an EE4 child theme or made any modifications to any of the files?
If we cannot reproduce it, can you us access to the site?


Michael Calonje

September 11, 2014 at 5:30 am

In Events, Edit Venue, Physical Location, I typed in Medellín as the city, and selected Colombia as the country.

I somehow turned off the detailed venue info on the registration page, but it is still displaying incorrectly on the venue page.

I do not have a child theme and have not made any modifications to files. For some reason, Event Espresso is pulling the abbreviation for the country rather than the full country name.


Lorenzo Orlando Caum

  • Support Staff

September 11, 2014 at 8:02 am

Hi could you share a screenshot of the address within the venue editor?

You can upload to WordPress media and then link to it here by sharing the link.

Thanks


Lorenzo


Michael Calonje

September 11, 2014 at 8:25 am


Michael Calonje

September 11, 2014 at 8:26 am

Venue Information


Lorenzo Orlando Caum

  • Support Staff

September 11, 2014 at 9:09 am

Thanks!

Was the state/province and country typed into those fields or were they selected from a dropdown?

http://cl.ly/image/0u420Q0m1Y28


Lorenzo


Michael Calonje

September 11, 2014 at 9:48 am

Both were selected from a dropdown menu, as they had been added in General Settings > Country. See screenshot below of set up in “Country”
Country


Sidney Harrell

September 14, 2014 at 6:35 pm

I’ve tracked it down to the _regular_formatting method on the EEH_Address class in the EEH_Formatter.helper.php file on line 320. Now how we go about letting you be able to customize that in a way that does not modify the core files is something I’m not quite sure of yet. I’m going to ask one of our developers to take a look at it and see what he thinks.


Lorenzo Orlando Caum

  • Support Staff

September 13, 2015 at 8:37 pm

Hello again,

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.

There are also some additional examples.

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

The support post ‘Collation for address in event registration form incorrect. Country abbreviated’ 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