Support

Home Forums WP User Integration Add "Name" to [ESPRESSO_MY_EVENTS]

Add "Name" to [ESPRESSO_MY_EVENTS]

Posted: April 3, 2018 at 11:16 am


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

  • Support Staff

April 4, 2018 at 3:46 am

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

That worked out great! Thank you

The support post ‘Add "Name" to [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.

Event Espresso