Booking Table Code Change Request
-
Hi,
I have made some modifications to
em-bookings-table.php
to help me display and export the bookings in individual ticket type level (i.e. 1 user may make multiple ticket types for 1 event)There is a function that I have to keep patching because the original code doesn’t work correctly.
Could you update output_table() to fix the code in
if( $this->show_tickets ){ }
Add code to print additional </tr><tr> for rows after the first row. This is my ugly patch if you want to have a reference
if( $this->show_tickets ){ <strong>$loopcount = 0;</strong> foreach($EM_Booking->get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking){ <strong>$loopcount++; if ($loopcount > 0) { echo '</tr><tr>'; }</strong> ?><td><?php echo implode('</td><td>', $this->get_row($EM_Ticket_Booking)); ?></td><?php } } else {
Regards
Kok Kee
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Booking Table Code Change Request’ is closed to new replies.