Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Last active December 20, 2017 01:58
Show Gist options
  • Select an option

  • Save jesseeproductions/f97b79abe0458fc07a18 to your computer and use it in GitHub Desktop.

Select an option

Save jesseeproductions/f97b79abe0458fc07a18 to your computer and use it in GitHub Desktop.
Event Tickets - Ticket Description in Ticket Email for WooCommerce Tickets
//Add inside the foreach ( $tickets as $ticket ) { }
$ticket_product_id = get_post_meta( $ticket['ticket_id'], '_tribe_wooticket_product', true );
$ticket_product = get_post( $ticket_product_id );
$ticket_description = $ticket_product->post_excerpt;
//Add inside ticket html:
<table class="ticket-details" border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td class="ticket-details" valign="top" align="left" width="100" style="padding: 0; width:100%; margin:0 !important;">
<h6 style="color:#909090 !important; margin:0 0 10px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform:uppercase; font-size:13px; font-weight:700 !important;"><?php esc_html_e( 'Ticket Description', 'event-tickets' ); ?></h6>
<span style="color:#0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size:15px;"><?php echo $ticket_description; ?></span>
</td>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment