Winter Solstice! 30% Off code WSOL25

ends 1/4 PST Shop Now

How to add additional data to confirmation email

Last Updated: December 16, 2025

class custom_code{
	public function __construct(){
		add_action('evotix_confirmation_email_data_after_tr', array($this,'tix_confirmation'), 10, 4);
	}

	public function tix_confirmation($EVENT, $TIX_CPT, $order, $styles){

		// get the new values
		$new_value = 'new value';
		?>
		<tr><td colspan='3' style='border-top:1px solid #e0e0e0; padding:8px 20px; text-transform: none'>
		 	<div style='font-size: 14px;font-style: italic;font-family: "open sans",helvetica; padding: 0px; margin: 0px;font-weight: bold;line-height: 100%;word-break:break-word'>
		 		<?php echo $new_value;?> 			
		 	</div>
		 	<p style="<?php echo $styles['004'];?>"><?php echo 'Additional Information';?></p>
		 </td></tr>
		<?php
		
	}
}
// initiate the class
new custom_code();

This code can be placed in functions.php file or as a separate plugin file.

This code will add any additional values to Ticket confirmation email. You can use passed on parameters such as $EVENT, $TIX_CPT, $order, $styles to grab new values from those objects.

How to Get Ticket Meta Values

$TIX_CPT is eventon ticket post object, that will give you access to fetch ticket meta values like; cost, email, status, wc_var_id, wcid.

$TIX_CPT->get_prop( "property-name" );

Example Code Ideas

Show Billing Address/Details

// Get the formatted billing address (handles localization, line breaks, etc.)
$formatted_billing_address = $order->get_formatted_billing_address();

// Optional: Fallback text if no address is set
$formatted_billing_address = $formatted_billing_address ? $formatted_billing_address : __('N/A', 'woocommerce');

// Output it (e.g., in a custom template or hooked location)
?>
<div style="<?php echo $styles['103']; ?> overflow:hidden;">
    <span style="display:inline-block;  width:50%; <?php echo $styles['007']; ?> text-transform:none;"><?php echo wp_kses_post($formatted_billing_address); ?></span>
    <span style="display:inline-block; width:50%; <?php echo $styles['004']; ?> "><?php echo 'Billing Address' ?></span>
</div>
<?php

Show Ticket Cost/Price

$help = new evotx_helper();

?>
<div style="<?php echo $styles['103']; ?> overflow:hidden;">
    <span style="display:inline-block;  width:50%; <?php echo $styles['007']; ?> text-transform:none;"><?php echo $help->convert_price_to_format($TIX_CPT->get_prop('cost')); ?></span>
    <span style="display:inline-block; width:50%; <?php echo $styles['004']; ?> "><?php echo 'Ticket Value' ?></span>
</div>
<?ph

Did this article help you?

Ready to Start Your Calendar?

65k+ Sites Use EventON

Start with Lite

Download Free

Or

Go Pro

Buy Full