Posted: 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. Thanks! |
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 – http://take.ms/d9cLr If I understand that sounds like what you are requesting above? If not can you explain further please. |
|
|
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 |
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: |
|
|
Okay cool thanks, I’ve sent in login credentials. |
|
Sorry I didn’t give you links. You can register for an event on this page: http://biz197.inmotionhosting.com/~mibeac5/activities/tennis/junior-tennis/ Just try selecting multiple tickets. The My Espresso Events shortcode is located on this page: http://biz197.inmotionhosting.com/~mibeac5/member-home/ Thanks so much. |
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. |
|
|
Ooooh wow, yea that makes sense now. Is there a way to show all tickets purchased by that user id? |
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: https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c 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. |
|
|
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. |
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: /wp-content/uploads/espresso/templates — |
|
|
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. Thanks |
That’s correct, the messages system works differently than my events.
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:
Should work fine. Is the previous account no longer active? I tried logging in to view this but no longer can. |
|
|
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 |
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. |
|
|
Tony, this worked like a charm. Thank you so so much for working through this with me. You and your team are amazing! |
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: https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c |
|
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.