Support

Home Forums Event Espresso Premium What do the date/time short codes for templates do?

What do the date/time short codes for templates do?

Posted: November 5, 2020 at 10:20 am


ArleneK19

November 5, 2020 at 10:20 am

I’m trying to sort out an issue with an event that has multiple dates. This is the event:
https://fashionlabny.com/events2/santas-gift-sewing-workshop-2020/

The registration approved email sends a message that has the name of the ticket in bold and that contains the date (b/c it’s part of the title for the ticket) but it sends both dates. See image below.

Event details

I looked at the list of available shortcodes for the [DATETIME_LIST] field but I can’t find documentation for the shortcodes.

So, aside from experimenting with every shortcode, is there a shortcode that will display the proper date/time for the ticket instead of both available dates/times?


ArleneK19

November 5, 2020 at 10:21 am

Image URL:
https://www.dropbox.com/s/27w06f3caazwhr0/Screen%20Shot%202020-11-05%20at%2012.12.20%20PM.png?dl=0


Tony

  • Support Staff

November 6, 2020 at 4:29 am

Hi there,

In short, the issue here isn’t the DATETIME_LIST shortcode but rather how your tickets are currently set up in the event.

Both of your tickets are assigned to both of the datetimes so although you have the date in the ticket name, as far a EE is concerned the ticket sale applies to both datetimes.

Edit your event and click on the icon for the ‘Santa’s Sewing Workshop – Dec 11’ ticket.

In the ‘Event Datetimes’ section you’ll see both datetimes selected. Uncheck the datetime that ticket is not intended for and update. That should fix the message template.

To give an explanation of what is happening, tickets grant access to datetimes and a single ticket can be assigned to multiple datetimes to give access to them all.

So in the registration approved message template, the [DATETIME_LIST] shortcode is used within the TICKET_LIST section which means that in that specific context, [DATETIME_LIST] is pulling all of the datetimes the ticket is assigned to and looping over those datetimes to output whatever is in the DATETIME_LIST section.

The support post ‘What do the date/time short codes for templates do?’ 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