Alphabetical list of attendees with names of tickets they bought
-
I’m trying to alter the output of bookings-event-printable.php.
With `<?php
foreach($bookings as $EM_Booking) {
?>
<tr>
<td><?php echo $EM_Booking[‘person_name’] ?></td>
<td><?php echo $EM_Booking[‘person_email’] ?></td>
<td><?php echo $EM_Booking[‘person_phone’] ?></td>
<td class=’spaces-number’><?php echo $EM_Booking[‘booking_space’] ?></td>
<td><?php echo $EM_Booking[‘booking_comment’] ?></td>
</tr>`
I get my bookings on alphabetical order.With `<?php foreach($EM_Booking->get_tickets_bookings() as $EM_Ticket_Booking): ?>
<?php /* @var $EM_Ticket_Booking EM_Ticket_Booking */
echo $EM_Ticket_Booking->get_ticket()->name;
?><br><?php endforeach; ?>`
I get a list of attendees with their corresponding tickets on order of date and time they bought the ticket.Is it possible to combine these codes? So I can have a list of attendees with the corresponding tickets they bought? Many thanks in advance.
- The topic ‘Alphabetical list of attendees with names of tickets they bought’ is closed to new replies.