Home › Forums › Ticket Products › Event Tickets Plus › Disable sending tickets via email
- This topic has 10 replies, 2 voices, and was last updated 11 years, 3 months ago by
Josh.
-
AuthorPosts
-
January 16, 2015 at 3:44 pm #933877
Bettina Schwidder
ParticipantHello there,
I have a question regarding to sending out the tickets after completing a order.
Is there a way to disable it? Unfortunately there is not check mark to control it like for sending emails after ordering or completing the order.Thank you in advance.
Bettina
January 18, 2015 at 8:14 pm #934501Josh
ParticipantHey Bettina,
Thanks for reaching out to us!
Try adding the following snippet to your theme’s “functions.php” file:
add_action( 'init', 'wootickets_stop_sending_email', 99 ); function wootickets_stop_sending_email() { $woo = TribeWooTickets::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 this helps.
Thanks!
January 19, 2015 at 5:14 am #934616Bettina Schwidder
ParticipantHey Josh,
great – thank you for your quick response.
I have included the snippet and all tests are working fine!Best
BettinaJanuary 19, 2015 at 5:23 am #934622Bettina Schwidder
ParticipantOh, I have one more question.
There is the following information included in the email for a new order: You will get your tickets in a separate email.
(it is maybe a little different because I have the german translation)
I want to delete/disable it too. Where can I find it?Thank you so much again for your support – and I appreciate the great work of your team.
Best from Berlin
BettinaJanuary 22, 2015 at 11:02 am #936302Josh
ParticipantHey,
Sorry for the delay!
You can remove the ticket notification from that email by adding additional line to the previous snippet. The updated snippet would look like:
<pre>add_action( 'init', 'wootickets_stop_sending_email', 99 ); function wootickets_stop_sending_email() { $woo = TribeWooTickets::get_instance(); remove_filter( 'woocommerce_email_classes', array( $woo, 'add_email_class_to_woocommerce' ) ); remove_action( 'woocommerce_email_after_order_table', array( $this, 'add_tickets_msg_to_email' ), 10, 2 ); }</pre>Let me know if this helps.
Thanks!
January 25, 2015 at 1:04 pm #937374Bettina Schwidder
ParticipantHey Josh,
no problem and thank you – I am also late this time!
I will try it and let you know.
Best
BettinaJanuary 27, 2015 at 6:31 am #938012Josh
ParticipantHey Bettina,
Sounds great! Look forward to hearing back from you.
Thanks!
January 31, 2015 at 8:39 am #939187Bettina Schwidder
ParticipantHey Josh,
I didn’t work! There is still the information included.
Unfortunately I can’t add a screenshot here to show you.Best, Bettina
February 2, 2015 at 8:13 am #939420Josh
ParticipantHey Bettina,
Sorry about that. Try this:
<pre>add_action( 'init', 'wootickets_stop_sending_email', 99 ); function wootickets_stop_sending_email() { $woo = TribeWooTickets::get_instance(); remove_filter( 'woocommerce_email_classes', array( $woo, 'add_email_class_to_woocommerce' ) ); remove_action( 'woocommerce_email_after_order_table', array( $woo, 'add_tickets_msg_to_email' ), 10, 2 ); }</pre>Let me know if this helps.
Thanks!
February 3, 2015 at 2:10 pm #939821Bettina Schwidder
ParticipantHey Josh,
great – now it works!
Thank you so much for your help.
Best from Berlin
BettinaFebruary 4, 2015 at 7:40 pm #940123Josh
ParticipantHey Bettina,
No problem! Glad we were able to get this working for you.
I’ll go ahead and close this ticket for now. If you have any further questions, please don’t hesitate to open a new one.
Thanks!
-
AuthorPosts
- The topic ‘Disable sending tickets via email’ is closed to new replies.
