Home › Forums › Ticket Products › Event Tickets Plus › Show attendee list for past events
- This topic has 4 replies, 2 voices, and was last updated 5 years, 11 months ago by Mario.
-
AuthorPosts
-
April 26, 2018 at 12:59 am #1516531MarioParticipant
Hi,
the “View the attendees list” link is not shown on past events’ single page. Is it possible to change this behavior? If this feature is not provided can you please put me on the right track to code this feature myself.Thank you in advance
April 27, 2018 at 7:24 am #1517805VictorKeymasterHi Mario!
Thanks for getting in touch with us!
Are you referring to the Who’s attending list of attendees in the frontend of the event that is not showing up?
If so, that should still display even if the event has passed.
Could you please verify that the option to “Show attendees list on event page” is activated for the event? You can do this by navigating to the edit event page and click the ticket Settings button.
Let me know about that.
Thanks,
VictorApril 30, 2018 at 8:28 am #1519235MarioParticipantFirst thing I checked 😉
Of course the event is set to display the attendees. It will correctly display the link until it is not past. For past events the link is hidden even despite of the settings.
April 30, 2018 at 8:55 am #1519260MarioParticipantHello Victor,
I dig into events tickets code and I think the “view attendees list” link is hooked to an action (tribe_tickets_before_front_end_ticket_form) called inside front_end_tickets_form() function (in main.php).
So if not tickets need to be printed on screen no link is displayed… Am I wrong?
If this is normal behavior how can I tweak it to show the link for past events? Again I do not need custom code just an hint on what is the suggested best practise for this particular case… (do I need to use a filter, hook an action, etc.).
Thank you in advance.
April 30, 2018 at 5:55 pm #1519693VictorKeymasterHi Mario!
I’m sorry for the confusion. Thanks for clarifying that.
You can totally change that behavior by changing the hook the attendees list is hooking into. You can see then snippets to do this in the following piece of code > https://github.com/moderntribe/event-tickets/blob/master/src/Tribe/RSVP.php#L1052-L1071
I hope that helps 🙂
Best,
VictorMay 22, 2018 at 9:35 am #1536203Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Show attendee list for past events’ is closed to new replies.