Home › Forums › Ticket Products › Event Tickets Plus › order process
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 2, 2015 at 2:05 am #1020651
John Paul
ParticipantHi,,I wonder if you can help me.. when using wootickets I cannot help feel that the customer receives one more email than they require…
email 1…. tells the custoemr we have rec’d the order and it is being processed
we then receive payment and click on the order to ‘complete’ …. the custoemr then receives two emails at the same time
email 2… your order is complete…tickets coming soon
email 3… here are your tickets
in my view we do not need email 2..
is it possible to send just one email after completing the order? that says…. your order is complete and here are your tickets
November 2, 2015 at 10:27 am #1020881George
ParticipantHey @John!
Thanks for reaching out βΒ the good news is that you can definitely cut out that “email 2”, but the bad news is that it unfortunately requires a bit of custom coding π
To do this, you’d have to head to your theme’s functions.php file and then add code like what is mentioned in the WooCommerce documentation page here β https://docs.woothemes.com/document/unhookremove-woocommerce-emails/
Now, if the code in that page looks too complicated and you don’t want to mess with any other emails but these “Order Complete” emails, you can simplify the code in that article to just this:
add_action( 'woocommerce_email', 'unhook_those_pesky_emails' );function unhook_those_pesky_emails( $email_class ) {
// New order emails
remove_action( 'woocommerce_order_status_pending_to_processing_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
remove_action( 'woocommerce_order_status_pending_to_completed_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
remove_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
remove_action( 'woocommerce_order_status_failed_to_processing_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
remove_action( 'woocommerce_order_status_failed_to_completed_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
remove_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );// Completed order emails
remove_action( 'woocommerce_order_status_completed_notification', array( $email_class->emails['WC_Email_Customer_Completed_Order'], 'trigger' ) );
}
That code might not look a whole lot simpler, but it will only affect “Order Completed”-style emails…
I hope this helps!
β George
November 3, 2015 at 2:15 am #1021153John Paul
Participantmany thanks
November 3, 2015 at 9:48 am #1021363George
ParticipantCheers! π
February 18, 2016 at 8:30 am #1075356Support Droid
KeymasterThis 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 ‘order process’ is closed to new replies.
