Event Ticket Plus – stop sending ticket email

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1098948
    Dean
    Participant

    Hi,

    Following on from this now closed post:

    event ticket plus – stop sending ticket email

    Geoff referenced a plugin to do accomplish this : https://theeventscalendar.com/knowledgebase/disable-the-ticket-email/ unfortunately the page doesn’t exist any more.

    Please can you provide an up-to-date solution that accomplishes this. I’m using Events Ticket Plus 4.1.1

    Thank you.

    #1099086
    Brian
    Member

    Hi,

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

    Try adding this snippet to your theme’s functions.php:

    /*
    * 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' ) );
    }
    }

    Let me know if that works for you.

    Cheers

    #1099401
    Dean
    Participant

    Hi Brian,

    Thank you for that code however that stops all three emails from sending.
    1) New Customer Order (for Admin)
    2) Your tickets (this is just the one I need stopping)
    3) You Order is complete (for customer)

    Any further assistance would be appreciated. Any chance this can be added as an option in the Admin somewhere in future builds?

    Thank you.

    #1099457
    Brian
    Member

    Hi,

    How strange, I am not see it.

    I retested the snippet and it worked as it should.

    Are you getting other errors that might cause all the emails to stop on your site?

    Did you have any other custom coding still in your site that might conflict with this.

    As for new features.

    If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    http://tribe.uservoice.com/

    #1099481
    Dean
    Participant

    Hi Brian,

    Thank you for the above. Yes it was a clash of code in my themes’ functions.php file.

    All working now with just emails for Customer Confirmation and Admins’ New Order being sent and received.

    🙂

    • This reply was modified 10 years ago by Dean.
    #1099702
    Brian
    Member

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Event Ticket Plus – stop sending ticket email’ is closed to new replies.