• Resolved roello007

    (@roello007)


    Hi There,

    We would like to display the number of spaces per attendee in the event.
    Ive tryed the #_BOOKINGSPACES in the event notes aswell as in the single event template. Both don’t work. In earlier version this did work, i only don’t no what version this was.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter roello007

    (@roello007)

    Aha i found a edit in the old backup. In the attendeeslist.php, this was edited:

    <?php
    $bookings = array();
    foreach($EM_Event->get_bookings()->bookings as $EM_Booking){
    if ($EM_Booking->status == 1){
    array_push($bookings, array(‘person_name’=>$EM_Booking->person->get_name(),’person_email’=>$EM_Booking->person->user_email,’person_phone’=>$EM_Booking->person->phone,’booking_space’=>$EM_Booking->get_spaces(),’booking_comment’=>$EM_Booking->booking_comment,’Tickets_Bookings’=>$EM_Booking->get_tickets_bookings()));
    }
    }
    asort($bookings);
    ?>

    <?php
    foreach($bookings as $EM_Booking) {
    ?>
    <tr>
    <td class=”Name”><?php echo $EM_Booking[‘person_name’] ?></td>
    <td>(Aantal kaartjes: <?php echo $EM_Booking[‘booking_space’] ?>)</td>
    <td class=”Ticket”></br></td></tr><?php
    }
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Number of spaces per attendee doesn’t display’ is closed to new replies.