Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    sorry, can you rephrase ? didn’t get your questions…

    Thread Starter MAXIS322718_m

    (@maxis322718_m)

    What are the options to insert the name of reserved tickets to the template format individual event by default?

    Thread Starter MAXIS322718_m

    (@maxis322718_m)

    agelonwl

    (@angelonwl)

    try placeholder #_BOOKINGTICKETS

    For more placeholder – http://wp-events-plugin.com/documentation/placeholders/

    Thread Starter MAXIS322718_m

    (@maxis322718_m)

    placeholder #_BOOKINGTICKETS does not work because it is for e-mail messages must be some other way?

    Thread Starter MAXIS322718_m

    (@maxis322718_m)

    you can do like that with the help of this function do?

    $EM_Ticket_Booking->get_ticket()->name;
    But I’m not a programmer someone tell me how?

    agelonwl

    (@angelonwl)

    Thread Starter MAXIS322718_m

    (@maxis322718_m)

    Looking at the idea of the other posts something that happened but not quite. At me it turns out that when you insert a $EM_Ticket->ticket_name here `$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){

    if($EM_Booking->status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
    $people[] = $EM_Booking->get_person()->ID;
    echo ‘<li>’. get_avatar($EM_Booking->get_person()->ID, 50).$EM_Booking->get_person()->display_name.$EM_Ticket->ticket_name.'</li>’;

    }
    }
    ?>
    </ul>
    <?php
    }`

    It works but it is not as we would like. It turns out that when ordering tickets he always shows the last ticket deleting the предыдущие.Есть there a way that you could show the names of many tickets but only after the confirmation of the avatar in the file attendees.php for example?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Probabl you want to get the array e.g.

    $EM_Booking->get_tickets()->tickets

    which is an array of EM_Ticket objects.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Placeholders ticket’ is closed to new replies.