Support

Home Forums Event Espresso Premium Show Event Start- End Date in Ticket HTML

Show Event Start- End Date in Ticket HTML

Posted: December 29, 2016 at 5:52 am


ardiaful

December 29, 2016 at 5:52 am

I want to show the shortcodes [DATE_START] – [DATE_END] in my ticket HTML content (Ticket Add-on). However, only the shortcode [DATETIME_LIST] seems usable for that purpose.

Is there a way that I can show my desired shortcodes?


Tony

  • Support Staff

December 29, 2016 at 6:49 am

To show the DATE_START and DATE_END you need the datetime for the event so you need to use them within the DATETIME_LIST section.

Are the tickets assigned to a single datetime?

If so you can achieve what you are looking for by just using only [DATE_START] – [DATE_END] within DATETIME_LIST and then call the [DATETIME_LIST] shortcode.

If there are multiple datetimes, it will loop over them all outputting the details, but if just one that it should work.


ardiaful

December 29, 2016 at 7:05 am

My point is that I work with recurring events, each having different datetimes. So when a user prints his ticket, I don’t want to show the full list of dates for that event on the ticket, but only the date he/she has bought the ticket for.

For example:
http://www.mysite.com/ee-event/name-of-event/?date=2016-12-30%2008:00:00&endate=2016-12-30%2017:00:00


Tony

  • Support Staff

December 29, 2016 at 8:18 am

I’m not sure what your trying to show with the link, can you provide more details please?

The Datetime_list section does not loop over the datetimes assigned to the event, it loops over the datetimes assigned to the ticket. So it only shows datetimes that are relevant for the registration they just placed.

Can you link me to the event so I can view the setup/ticket to see what you are trying to do?


ardiaful

December 29, 2016 at 9:03 am

I’ve sent you two links, both refer to the same event which takes places in two different dates (recurring event). If a user buys a ticket for date 1 (Link 1), I need the ticket to show the date 1. If user buys for date 2 (Link 2), I need ticket to show date 2.


Tony

  • Support Staff

December 29, 2016 at 9:14 am

The site is currently in maintenance mode so I can’t view the events, can you re-submit the form with login details I can use to view them, or temporarily disable maintenance mode please.


Tony

  • Support Staff

December 29, 2016 at 9:38 am

Ok, so I can access the events, however its not clear how you have this set up.

I looks like you have a SINGLE event, with 3 datetimes.

Then you have 3 tickets, all of which are assigned to ALL of the datetimes within the event.

The links you provided just filter out the dates you don’t want the user to see?

It’s a recurring event (which EE4 does not officially support) so If you have a single event, with multiple datetimes and then tickets assigned to ALL of the datetimes, then those tickets will list all of those datetimes regardless of the filtering you do on the front end.

Can you add a screenshot of the event editor itself?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


ardiaful

December 29, 2016 at 10:01 am

Sorry, maybe my examples were rather confusing. Actually, there are no tickets assigned to ALL datetimes, instead tickets are created on a single datetime basis. I’m sending you new links to real events where you can check tickets are exclusive for a datetime.


Tony

  • Support Staff

December 29, 2016 at 10:24 am

So registering onto one of those events, the ticket shows only the datetime for that ticket – http://take.ms/rMNPvo

You can change the shortcodes in use within DATETIME_LIST to display that differently if needed.

Or is there something different you are trying to do here?


ardiaful

December 29, 2016 at 10:32 am

That’s exactly what I was trying to do. In summary, showing single date in recurring event works only if tickets are exclusive of a datetime, and not assigned to ALL datetimes?


Tony

  • Support Staff

December 29, 2016 at 11:29 am

Yes.

The datetimes displayed within that section are the datetimes assigned to the ticket you registered on, if that’s all datetimes, 1 datetimes or many it will show them.

DATETIME_LIST loops over the datetimes and outputs whatever shortcodes you have set in the field for EACH datetime from the above.

The support post ‘Show Event Start- End Date in Ticket HTML’ 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