Support

Home Forums Event Espresso Premium Adress lay-out EE-4 version 4.8.29

Adress lay-out EE-4 version 4.8.29

Posted: January 13, 2016 at 6:16 am


Paroles

January 13, 2016 at 6:16 am

In my country (NL) the address lay-out differs from the standard US layout.
With the upgrade to 4.8.29 it seems that all advice to format the venue address is no longer working (I cannot make it work).
Furthermore, I also need to edit the company address in the receipt confirmation and the invoice as set by [INVOICE_PAYEE_ADDRESS].

What is the latest advice on formatting these two address blocks?

Regards,
Toon


Lorenzo Orlando Caum

  • Support Staff

January 13, 2016 at 7:39 am

Hi Toon,

We have a filter that can be used to change the formatting of the venue address. There are several examples available here:

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

What is the format that should be used for the Netherlands? I’ll then update the sample code snippet above.

Also, the receipt and the invoice is managed through the messages system for Event Espresso 4.

You can edit them by going to Event Espresso –> Messages. Then look for Receipt or Invoice and then click on Purchaser:

http://cl.ly/1K3j0d2I3f3t

That will take you to the messages editor with a specific message type loaded (e.g. receipt or invoice). Make changes and then save changes by clicking on the save button.


Lorenzo


Paroles

January 14, 2016 at 1:29 am

Hi Lorenzo,

the date format we use is the same as for Germany:
$address_formats[ ‘DE’ ] = “{address}%{address2}%{zip} {city}”;

Maybe I could just replace the ‘DE’ by ‘NL’ in the above line?

Regards,
Toon


Tony

  • Support Staff

January 14, 2016 at 2:24 am

Maybe I could just replace the ‘DE’ by ‘NL’ in the above line?

Yes that should be all you need to do.

$address_formats[ 'NL' ] = "{address}%{address2}%{zip} {city}";

Lorenzo will update his gist shortly but you can add that in just above:

return $address_formats;


Lorenzo Orlando Caum

  • Support Staff

January 14, 2016 at 9:13 am

Hi Toon,

Thanks for the feedback. I’ve updated the sample code snippet.


Lorenzo


Paroles

January 19, 2016 at 9:44 am

Lorenzo,

thanks a lot, the updated sample code snippet does a perfect job in my site-specific plugin.

Issue resolved.

The support post ‘Adress lay-out EE-4 version 4.8.29’ 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