• Hi,

    I am testing this event manager for my scubadive club. We arrange a lot of events for our member and they have to register to these event.

    I figured out to show the people that has registered but I also want to show how many times they has registered or booked a ticket. Some members also books for the husband en children.

    Is this also possible to show??

    Many thanks in advance!

    Regards,
    Adri

    • This topic was modified 1 year, 1 month ago by a3baracuda.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Create the directory wp-content/event-templates/events-manager/placeholders and then copy wp-content/event/events-manager/templates/placeholders/attendeeslist.php to that directory then change the copied file to print the number of spaces after each name:

    <?php
    /* @var $EM_Event EM_Event */
    $people = array();
    $EM_Bookings = $EM_Event->get_bookings();
    if( count($EM_Bookings->bookings) > 0 ){
        ?>
        <ul class="event-attendees">
        <?php
        foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */
            if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
                $people[] = $EM_Booking->get_person()->ID;
                echo '<li>'. $EM_Booking->get_person()->get_name() . '(' . $EM_Booking->get_spaces() . ')</li>';
            }elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
                echo '<li>'. $EM_Booking->get_person()->get_name() . '(' . $EM_Booking->get_spaces() . ')</li>';
            }
        }
        ?>
        </ul>
        <?php
    }
    Thread Starter a3baracuda

    (@a3baracuda)

    @joneiseman,

    thank your for the code but I can’t get it to work. I have made the directory as noted but that does not seems to work.

    There was a hickup in the directory structure.
    The right directory structure is
    wp-contents/plugin-templates/event-manager/placeholders.

    Now it is working great.
    Thank you very much!!

    • This reply was modified 1 year, 1 month ago by a3baracuda.
    Thread Starter a3baracuda

    (@a3baracuda)

    @joneiseman,

    In your first reply your stated the directory I needed to copy the original file from was: wp-content/event/events-manager/templates/placeholders That direcory does not exist. it should be wp-content/plugins/events-manager/templates/placeholders/

    And I should copy it to wp-content/event-templates/events-manager/placeholders but this should be
    wp-contents/plugin-templates/event-manager/placeholders

    Now it is working great. Thank you very much, this is exactly what I needed.

    • This reply was modified 1 year, 1 month ago by a3baracuda.
    • This reply was modified 1 year, 1 month ago by a3baracuda.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show who registered on single event page’ is closed to new replies.