• Resolved eventaus

    (@eventaus)


    Hi,

    Similar to this

    ?

      <td style=”font-family:au; font-size:14px; padding:5px;  color:#000;”>

                               <span style=”font-size:12px”><?php _e(‘Ticket Name:’, ‘wp-event-manager-sell-tickets’); ?></span>

                               <br><strong><?php echo $product->get_name(); ?> </strong>

    ????????????????????????</td>

    How can I add total quantity of all the tickets for each attendee option to pdf ticket?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Rita Kikani

    (@kikanirita)

    Hi @eventaus,

    You can write below code in your overridden template file :

    <td><strong><?php _e('Ticket QTY:', 'wp-event-manager-sell-tickets'); ?></strong><br><span style="font-family:au; font-size:14px; padding:5px;  color:#000;">
                            <?php foreach ($order->get_items() as $item) {
                                  $order_product_id = $item->get_product_id();
                                  if($product_id == $order_product_id){
                                     echo $item->get_quantity() .'<br/>';
                                  }
                                 
                               } ?></td>

    If you have any further query then please continue in this thread.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Show QTY for Each Attendee Tickets’ is closed to new replies.