How to disable "Tickets" email?

Home Forums Ticket Products Event Tickets Plus How to disable "Tickets" email?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1069985
    Karl
    Participant

    Hi, all the other emails can be enabled/disabled via the Settings panel, but not this one – how can I turn them off? We will not be sending e-tickets, so don’t need to send this mail.

    #1070001
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    Try this snippet to disable the Ticket Emails and remove the message from the order email when using WooCommerce in Event Tickets Plus:

    /*
    * Events Tickets Plus - WooCommerce Tickets - Prevent Ticket Email from being sent.
    * @ Version 4.0
    */
    add_action( 'init', 'wootickets_stop_sending_email' );
    function wootickets_stop_sending_email() {
    if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
    $woo = Tribe__Tickets_Plus__Commerce__WooCommerce__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' ) );
    }
    }

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

    return $text;
    }

    Add that to your child theme’s (or parent) functions.php to use it.

    Let me know if that works.

    Thanks

    #1070021
    Karl
    Participant

    That is excellent Brian – that seems to work – many thanks.

    I have quite a few issues I could do with help on – I guess I’m best posting them as separate queries here, to help other people as much as anything?

    #1070295
    Brian
    Member

    Great, glad it helps.

    Yep if you can keep one query per topic that would be great.

    Thanks!

    #1081477
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to disable "Tickets" email?’ is closed to new replies.