Hi there Tim,
Thanks for reaching out! Interesting question, let’s see how to do this…
Paste the following snippet in your theme (or child theme) functions.php file:
/* Tribe, only add "you'll receive your tickets in another email" message for given order statuses */
if ( class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main') ) {
// unhook default msg function
$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
remove_action( 'woocommerce_email_after_order_table', array( $tickets, 'add_tickets_msg_to_email' ), 10 );
// hook a custom action to check for order status before printing any msg
add_action( 'woocommerce_email_after_order_table', 'maybe_add_tickets_msg_to_email' );
function maybe_add_tickets_msg_to_email ( $order ) {
$status = $order->post_status;
// sample status check: bail if the status is not processing
if ( $status != 'wc-processing' ) return;
$tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
$tickets->add_tickets_msg_to_email( $order );
}
}
That should do the trick for you, be sure to change the status check for whatever fits your project!
Best,
Nico