Home Forums Event Espresso Premium EE4: Show all datetimes/tickets user registered for on [ESPRESSO_MY_EVENTS]

EE4: Show all datetimes/tickets user registered for on [ESPRESSO_MY_EVENTS]

Posted: April 11, 2016 at 7:00 pm

April 11, 2016 at 7:00 pm

I noticed when using [ESPRESSO_MY_EVENTS], it only lists the first datetime (beginning and end). I have 4 tickets, each connected to a unique datetime. If a user purchases 2 tickets, for example, then I’d like to display either both ticket names or both datetimes on their “My Events” page. Preferably it would be both ticket names.



  • Support Staff

April 12, 2016 at 9:19 am

Hi there,

By default the template that is loaded when using [ESPRESSO_MY_EVENTS] loads each ticket and displays the date range available for that ticket (across all datetimes that ticket is assigned to –

If I understand that sounds like what you are requesting above?

If not can you explain further please.

April 12, 2016 at 2:59 pm

That sort of sounds like what I’m trying to do but it’s not showing up that way for some reason. The only difference being that I have multiple tickets each with their own datetime (none of the tickets have multiple datetimes). Could that be the difference? I’m wondering if I set this up differently somehow.

Here’s my ticket listing: Ticket Screenshot

Here’s the way it looks on my event listing: Listing Screenshot


  • Support Staff

April 13, 2016 at 3:33 am

The only difference being that I have multiple tickets each with their own datetime (none of the tickets have multiple datetimes).

That’s how the tickets/datetimes are set up within the screenshot I added above.

Is there an event I can register on to view this? I’ll need login details for an account so I can view my events, you can send those details using this form:

April 13, 2016 at 5:15 pm

Okay cool thanks, I’ve sent in login credentials.

April 13, 2016 at 5:16 pm

Sorry I didn’t give you links. You can register for an event on this page:

Just try selecting multiple tickets.

The My Espresso Events shortcode is located on this page:

Thanks so much.


  • Support Staff

April 14, 2016 at 11:57 am

The reason this is happening is because with the EE4 User Integration add-on any attendee that does not match the EE contact details of the user that is logged in will not be assigned to that contact.

Meaning any registration that uses a different first name or email address than the primary registrant (the logged in user) will not show on the registrations of ‘My Events’.

As you add addition tickets you request the first name field (and email but its hidden) so as the user will be entering their childs name in all of the additional ticket fields, the first registration is the only one assigned.

April 14, 2016 at 12:35 pm

Ooooh wow, yea that makes sense now. Is there a way to show all tickets purchased by that user id?


  • Support Staff

April 15, 2016 at 2:48 am

That’s not something that is officially supported currently, however I have created a template that may work for your use case. It is available here:

Grab a copy of the file and place it wihtin /wp-content/uploads/espresso/templates/

Then retest.

It pulls in all of the registrations assigned to the same group that the current user is the primary registrant of. Note it makes additional queries to do this so depending on the amount of registrations this may not work and is also not supported by EE.

April 15, 2016 at 12:23 pm

Thank you for all your efforts. For some reason, this is still only showing the first ticket datetime. I like how this is displayed in the Registration Approved email with the [DATETIME_LIST] shortcode. I suppose it’s quite a different setup though for the emails?

Thanks again, you guys have been so great. If you can think of what might be missing here, I’d be so grateful.

Lorenzo Orlando Caum

  • Support Staff

April 18, 2016 at 7:27 am

Hello, have you previously made any edits to the template?

For example, if there is an existing copy of the content-espresso_my_events-event_section.template.php in your theme or child themes folder, then that copy would be used instead of the one recently added here:



April 18, 2016 at 2:43 pm

Hi Lorenzo,

No, I don’t have an existing copy in my theme folder. Just the one in uploads/espresso/templates.

Has this been tested and works somewhere that I can review? I’m wondering if there’s something I’m doing wrong.



  • Support Staff

April 19, 2016 at 2:30 am

I like how this is displayed in the Registration Approved email with the [DATETIME_LIST] shortcode. I suppose it’s quite a different setup though for the emails?

That’s correct, the messages system works differently than my events.

Has this been tested and works somewhere that I can review?

Its been tested by myself locally using the same type of event setup that you have but its not something EE supports.

Can you add some text just above line 40, after the closing php tag to confirm that template is loading please?

Something like:

$registrations = $all_registrations_array;
<tr class="ee-my-events-event-section-summary-row">

Should work fine.

Is the previous account no longer active? I tried logging in to view this but no longer can.

April 20, 2016 at 10:39 am

Hi Tony,

Yes, the client wanted to push the site live so we went ahead with it but they’d still like me to figure this part out. So I’ve got the staging site set up and will send you new login details shortly.

Thanks so much


  • Support Staff

April 20, 2016 at 1:31 pm

The function I was using in that custom template only pulled registrations on the same ticket type.

I’ve changed it around on yout staging server to pull in ANY registrations within a group.

Can you run some tests on the staging site to see if that now works as you expect and let me know please.

April 21, 2016 at 1:25 pm

Tony, this worked like a charm. Thank you so so much for working through this with me. You and your team are amazing!


  • Support Staff

April 22, 2016 at 4:31 am

I’ glad that worked for you and thank you for the feedback, I’ll be sure to pass it onto the rest of the team 🙂

One thing that is important to note here.

Event Espresso does not currently officially support grouping registrations with ‘non contact’ registrations within the My Events section. The template I have provided is a work around for that and should work for some/most users however its important to note that its not officially supported by EE (or the support team)

The changes made above have also been applied to the gist:

The support post ‘EE4: Show all datetimes/tickets user registered for on [ESPRESSO_MY_EVENTS]’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 years, 11 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!