Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Last active June 10, 2019 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billrobbins/8217ff526d27d40715920e809a7fce50 to your computer and use it in GitHub Desktop.
Save billrobbins/8217ff526d27d40715920e809a7fce50 to your computer and use it in GitHub Desktop.
<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