Home › Forums › Ticket Products › Event Tickets Plus › Remove tickets email
- This topic has 21 replies, 8 voices, and was last updated 8 years, 9 months ago by Support Droid.
-
AuthorPosts
-
July 26, 2013 at 1:50 am #57280overlanderzsgParticipant
Hi my event do not require tickets, any possibility to remove the tickets email? For new order and completed order, can i remove “You’ll receive your tickets in another email”
July 26, 2013 at 5:59 am #57302BarryMemberHi overlanderzsg,
To remove the tickets email can you try adding the following piece of code to your theme’s functions.php file?
remove_all_actions('wootickets-send-tickets-email');
And to remove the You’ll receive your tickets in another email message can you also try adding:
remove_action('woocommerce_email_after_order_table', array(TribeWooTickets::get_instance(), 'add_tickets_msg_to_email'), 10, 2 );
Does that help?
July 26, 2013 at 6:18 am #57310overlanderzsgParticipantHi Barry
Thanks for your reply. i add remove_all_actions(‘wootickets-send-tickets-email’); into the functions.php but it does not work. The tickets email still not deactivated. But I managed to solve the 2nd problemJuly 29, 2013 at 1:23 pm #57602BarryMemberHi overlanderzsg, sorry about that. Can you try this instead?
July 29, 2013 at 6:05 pm #57683infamiaParticipantHey Barry
Doesn’t work. Here are my findings:
This works to remove the “you’ll receive your tickets in another email” message:
`remove_action(‘woocommerce_email_after_order_table’, array(TribeWooTickets::get_instance(), ‘add_tickets_msg_to_email’), 10, 2 );`This doesn’t seem to do anything: `remove_all_actions(‘wootickets-send-tickets-email’);`
This: http://pastebin.com/WgnUYJwV does the following: It removes all email options from woocommerce->Settings->email. This includes New Order, Processing ORder, etc.
However it still sends the Tickets email.mickey
July 30, 2013 at 6:33 am #57737BarryMemberIt removes all email options from woocommerce->Settings->email. This includes New Order, Processing ORder, etc.
However it still sends the Tickets email.Indeed it does – that’s not good. OK, bear with me while I check in and get a second opinion on this.
July 30, 2013 at 6:36 am #57739infamiaParticipantThanks, Barry. LMK if I can help.
mickey
July 30, 2013 at 1:50 pm #57845BarryMemberSure thing, I’m just waiting to hear back from one of the core devs – as soon as that happens I’ll update this thread and may ask that you test a revised snippet.
Thanks again for your patience and support 🙂
July 30, 2013 at 4:42 pm #57883infamiaParticipantNo problem. Since we’re not sending a ticket email, here’s some code to get the event title and date from within woocommerce customer-completed-order.php email:
Hope that helps someone.
mickeyJuly 31, 2013 at 7:04 am #57969BarryMemberThanks, nice work.
July 31, 2013 at 7:25 am #57978overlanderzsgParticipantHi Barry Thanks for your help. I managed to get it remove with your code. Thanks infamia for your help too
July 31, 2013 at 8:09 am #57988BarryMemberGreat!
July 31, 2013 at 8:42 am #57999infamiaParticipantHey overlanderzsg
On my site, the tickets email still goes out. Were you able to disable the email from being sent? If so can you share what code worked for you please?
thanks
mickeyAugust 1, 2013 at 1:30 am #58210Schalk JoubertParticipantHi,
I also would like to stop the email tickets from sending.
Any advice?August 1, 2013 at 6:31 am #58236BarryMemberHi Schalk,
I’m just waiting on some advice from one of the developers of WooCommerce Tickets and as soon as I have that I will update you.
Thanks for your patience!
-
AuthorPosts
- The topic ‘Remove tickets email’ is closed to new replies.