How to remove "You'll receive your tickets in another email" in Events TIckets

Home › Forums › Ticket Products › Event Tickets Plus › How to remove "You'll receive your tickets in another email" in Events TIckets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1087274
    Carl
    Participant

    Hello,

    I would like to remove the message ‘You’ll receieve your tickets in another email’ as my site doesn’t sell tickets. For WooCommerce tickets I would use the following code:

    /*
    * The Events Calendar WooCommerce Tickets - Prevent Ticket Email from being sent. 
    * @ Version 3.10
    */
    add_action( 'init', 'wootickets_stop_sending_email' );
    function wootickets_stop_sending_email() {
    	if (class_exists('Tribe__Events__Tickets__Woo__Main')) {	
    		$woo = Tribe__Events__Tickets__Woo__Main::get_instance();
    		remove_filter( 'woocommerce_email_classes', array( $woo, 'add_email_class_to_woocommerce' ) );
    		add_action( 'woocommerce_email_after_order_table', array( $woo, 'add_tickets_msg_to_email' ) );
    	}
    }
    
    /*
    * The Events Calendar WooCommerce Tickets - Hide You'll receive your tickets in another email.
    * @ Version 3.10
    */
    add_filter('wootickets_email_message', 'woo_tickets_filter_completed_order', 10 );
    function woo_tickets_filter_completed_order($text) {
    	$text = "";
     	return $text;
    }

    I presume that this will not work for Events Tickets Plus. If not how do I make sure customers do not receive this message?

    Thanks in advance

    #1087394
    Brian
    Member

    Hi,

    This should still work in Event Tickets Plus.

    /*
    * The Events Calendar WooCommerce Tickets - Hide You'll receive your tickets in another email.
    * @ Version 3.10
    */
    add_filter('wootickets_email_message', 'woo_tickets_filter_completed_order', 10 );
    function woo_tickets_filter_completed_order($text) {
    $text = "";
    return $text;
    }

    Does it not work for you?

    That filter did not change when moved to Event Tickets Plus.

    Let me know.

    Thanks

    #1094095
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to remove "You'll receive your tickets in another email" in Events TIckets’ is closed to new replies.