Burnt Orange Design
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?
Tony
April 4, 2018 at 3:46 am
Add New Note to this Reply
Hi there,
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:
<td>
<?php echo $ticket instanceof EE_Ticket ? $ticket->name() : ''; ?>
</td>
Above that add this:
<td>
<?php
$attendee = $registration->attendee();
echo $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
?>
</td>
Like so – http://take.ms/4kJWL
Burnt Orange Design
April 4, 2018 at 6:53 am
Add New Note to this Reply
That worked out great! Thank you