Home › Forums › Ticket Products › Event Tickets Plus › How to stop sending email tickets after the order was completed??
- This topic has 9 replies, 4 voices, and was last updated 8 years, 7 months ago by Support Droid.
-
AuthorPosts
-
August 25, 2015 at 3:41 am #998691Emiliano PasiniParticipant
Hi, I don’t want to send any tickets, the order confirmation is enough, it is possible to stop sending tickets?
Thanks,
EmilianoAugust 25, 2015 at 7:03 am #998739GeorgeParticipantHey Emiliano,
If you head to your theme’s functions.php file, you should be able to turn this email-sending off by adding the following bit of code to that file:
remove_action( 'wootickets-send-tickets-email', array( 'Tribe__Events__Tickets__Woo__Email', 'trigger' ) );
Let me know if that helps!
August 25, 2015 at 7:28 am #998776Emiliano PasiniParticipantHi, I did that but I’m still receiving tickets/emails, another way??
August 25, 2015 at 8:10 am #998810GeorgeParticipantHey @emiliano,
Hm, sorry about that! This works for me so I’m not quite sure what the issue is, but there are two more things to try. First, try adding the “priority” to that remove_action() call, so that it looks like this:
remove_action( 'wootickets-send-tickets-email', array( 'Tribe__Events__Tickets__Woo__Email', 'trigger' ), 10 );
If that still does not work, then try replacing the code altogether with this instead:
remove_all_actions( 'wootickets-send-tickets-email', 10 );
I hope this helps!
August 26, 2015 at 11:55 am #999287Emiliano PasiniParticipantHi, I just try that and still is not working, I keep receiving tickets.
mm another alternative would be to edit the ticket,
The root for the Complete order is here woocommerce/emails/customer-completed-order.php.
Could you please let me know where is the root to edit the ticket.Thanks,
EmilianoAugust 26, 2015 at 7:48 pm #999439GeorgeParticipantSorry that has not worked Emiliano! Customizing that file you mentioned is not a good idea, unless we absolutely have to. But I think I have one more snippet that will work for you.
Instead of the other snippets I recommended, try adding this one to your theme’s functions.php file:
add_action( 'woocommerce_email_classes', 'remove_wootickets_email', 100 );function remove_wootickets_email() {
remove_all_actions('wootickets-send-tickets-email');
}
August 26, 2015 at 10:12 pm #999455Emiliano PasiniParticipantHi, this code works, the problem is that I’m loosing all the the other action functions ( as Processing and Complete order ). In this case, I won’t be able to resend any email in case the user haven’t received the automated one.
Sorry about that, I thought that removing the ticket email would be much easier,
Thanks,
EmilianoAugust 27, 2015 at 7:57 am #999590BrianKeymasterHi try this…
https://gist.github.com/jesseeproductions/7ec5827ffa34a3995dc9
The filter you can use to remove the message that tickets will be sent.
Let us know how that works.
Thanks
August 28, 2015 at 12:19 pm #1000042GeorgeParticipantHey Emiliano,
Any luck with the solution that Brian shared? It’s a great solution and I hope it works for you! 🙂
(And thanks for sharing that, Brian!)
– George
September 12, 2015 at 7:05 am #1004523Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘How to stop sending email tickets after the order was completed??’ is closed to new replies.