Support

Home Forums Event Espresso Premium Custom email Codes

Custom email Codes

Posted: October 28, 2019 at 1:33 pm

Viewing 4 reply threads


Prosafefirstaid

October 28, 2019 at 1:33 pm

Im trying to modify the registration template and want to show date and time on sepprite lines example
DATE: [Start_event_Date] to [End_event_Date]
TIME: [Event_start_Time] to [Event_end_time]

Displayed Data
DATE: October, 28th, 2019 to October 29th, 2019
TIME: 8:30AM to 4:00PM


Tony

  • Support Staff

October 28, 2019 at 3:22 pm

Hi there,

This is already available within the messages system without any custom shortcodes.

I’m assuming you want to edit the ‘Registration Approved’ message template?

If so go to Event Espresso -> Messages -> Default message template -> Registration Approved -> Edit Registrant.

In the [DATETIME_LIST] *: section you’ll have something like:

<li>[DATETIME_START] - [DATETIME_END]</li>

Change that to:

<li>
    DATE: [DATE_START] to [DATE_END]
    </br>
    TIME: [TIME_START] to [TIME_END]
</li>

You may also want to change the TICKET_LIST section where the above is called from this:

<li>
    Dates/Times:</br>
    <ul>[DATETIME_LIST]</ul>
</li>

to just:

<li>
    <ul>[DATETIME_LIST]</ul>
</li>

Is that what you are looking for?


Prosafefirstaid

October 28, 2019 at 5:32 pm

possible can i use that in the main content area?


Prosafefirstaid

October 28, 2019 at 5:44 pm

yes thank you


Tony

  • Support Staff

October 29, 2019 at 4:42 am

possible can i use that in the main content area?

No, each section is given a specific date to work with, like the DATETIME_LIST section is giving all of the datetime objects linked to the registration and loops over them outputting the details in that section.

It is possible to create your own message system shortcodes and pull in the data you need for that shortcode, but you can’t use shortcodes in sections that dont have that shortcode enable on them (meaning they know how to parse the shortcode and get the data it needs).

If you would like to look into creating your own custom shortcodes you can take a look at this doc:

https://eventespresso.com/wiki/messages-system-how-to-add-custom-message-shortcodes/

Viewing 4 reply threads

The support post ‘Custom email Codes’ 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