Posted: December 28, 2013 at 6:24 am
|
same here: saw some posts about this topic, but i don’t get it, sorry. I want to show [VENUE_ADDRESS] in my event email like… Thanks for helping me on this! |
|
Hi, The email tags for venues are: [venue_title] The address is currently formatted to appear like so A street There isn’t a simple way to change the structure without editing a core file. |
|
Hm, that is not very ideal. As this plugin is sold and used worldwide it would be really nice if admins could customize the ADDRESS to the order of STREET, ZIP, etc that is the rule in particular countries. I cannot use the ADDRESS tag with that output in my email ;( Very disappointing. There is really no way? |
|
The output for that shortcode is built up by line 259 in includes/functions/email.php: $data->location = ($data->event->address != '' ? $data->event->address : '') . ($data->event->address2 != '' ? '<br />' . $data->event->address2 : '') . ($data->event->city != '' ? '<br />' . $data->event->city : '') . ($data->event->state != '' ? ', ' . $data->event->state : '') . ($data->event->zip != '' ? '<br />' . $data->event->zip : '') . ($data->event->country != '' ? '<br />' . $data->event->country : ''); What Dean said is true, you would have to modify that core file since that function lacks the overwritable wrapper around it. That means your modification would be overwritten every time you update, forcing you to redo the modification each time you update. $data->location = ($data->event->address != '' ? $data->event->address : '') . ($data->event->address2 != '' ? '<br />' . $data->event->address2 : '') . ($data->event->zip != '' ? '<br />' . $data->event->zip : '') . ($data->event->city != '' ? '<br />' . $data->event->city : '') . ($data->event->state != '' ? ', ' . $data->event->state : '') . ($data->event->country != '' ? '<br />' . $data->event->country : ''); |
|
That sounds great, thanks for having this feature in your next update! I am sure a lot of customers will be very happy 🙂 When do you think this update will be released approximately? Maybe it makes sense to wait and not edit the core files now? Thank you very much Sidney! |
|
The next version is 3.1.37, but it’s to late in the release cycle to add new features into it. It’s in the bug-fix only stage. The filters have been added to the 3.1.38 version to give any new features time to be tested. So you should probably go ahead and make the changes now. |
|
Thanks! I prefer waiting for the official update 🙂 Thanks for integrating this! I guess that helps a lot of users! |
The support post ‘Custom VENUE_ADDRESS output?’ 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.