event ticket plus – stop sending ticket email

Home Forums Ticket Products Event Tickets Plus event ticket plus – stop sending ticket email

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1080001
    Emiliano Pasini
    Participant

    Hi, I would like to stop sending the ticket email after the order is completed. The snippet I was using is not longer working.

    Could you please send me the updated one?
    /*
    * 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;
    }

    Many thanks,
    Emiliano

    #1080117
    Emiliano Pasini
    Participant

    Hi, Geoff B. wrote a week ago: ( unfortunately there is not link attached )

    Geoff B.
    February 15, 2016| Permalink

    Good evening František,

    I have some great news for you. The code snippet that I told you needed to be updated has been updated!

    You can grab it here and it should work:

    Geoff B.

    Thanks!

    #1080332
    Geoff
    Member

    Hey there, Emiliano!

    Sure thing, you can grab a little plugin that disables the email here:

    Disable Ticket Emails Conditionally

    Let me know if that works for you. 🙂

    Cheers!
    Geoff

    #1086295
    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘event ticket plus – stop sending ticket email’ is closed to new replies.