Home › Forums › WP User Integration › Add "Name" to [ESPRESSO_MY_EVENTS]
Posted: April 3, 2018 at 11:16 am
Burnt Orange Design
EE4 Developer License
April 3, 2018 at 11:16 am
I used the code found here (https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c) to display all tickets for each registration.
How do I add a new table column to display the person’s name?
April 4, 2018 at 3:46 am
To do that you need to edit a different template file.
Within /eea-user-intergration/templates/ you’ll find the content-espresso_my_events-event_section_tickets.template.php template.
Copy that to your themes root directory, the same way you did with my snippet above.
From line 12 you’ll have:
<?php echo $ticket instanceof EE_Ticket ? $ticket->name() : ''; ?>
Above that add this:
$attendee = $registration->attendee();
echo $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
Like so – http://take.ms/4kJWL
April 4, 2018 at 6:53 am
That worked out great! Thank you
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Burnt Orange Design 2 weeks, 1 day ago ago
Tagged: wp user integration