Home › Forums › Ticket Products › Event Tickets Plus › Event Ticket Plus – stop sending ticket email
- This topic has 5 replies, 2 voices, and was last updated 10 years ago by
Brian.
-
AuthorPosts
-
April 6, 2016 at 8:34 am #1098948
Dean
ParticipantHi,
Following on from this now closed post:
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.
April 6, 2016 at 12:17 pm #1099086Brian
MemberHi,
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
April 7, 2016 at 12:08 am #1099401Dean
ParticipantHi 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.
April 7, 2016 at 4:45 am #1099457Brian
MemberHi,
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.
April 7, 2016 at 5:24 am #1099481Dean
ParticipantHi 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.
April 7, 2016 at 10:53 am #1099702Brian
MemberI 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!
-
This reply was modified 10 years ago by
-
AuthorPosts
- The topic ‘Event Ticket Plus – stop sending ticket email’ is closed to new replies.
