Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<dl class="purchased-tickets">
<?php foreach ( $tickets as $ticket ) : ?>
<dt>
<a href="<?php echo esc_url( wcbo_get_my_ticket_url( $ticket->ID ) ); ?>">
<?php echo esc_html( $ticket->post_title ); ?>
</a>
<?php if ( 'pending' === $ticket->post_status ) : ?>
&mdash;
<span class="pending"><?php _e( 'Pending', 'woocommerce-box-office' ); ?></span>
<?php endif; ?>
</dt>
<dd class="description">
<?php echo WC_Order_Barcodes()->display_barcode($ticket->ID); ?>
<?php echo wc_box_office_get_ticket_description( $ticket->ID, $fields_format ); ?>
</dd>
<?php endforeach; ?>
</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.