order process

Home Forums Ticket Products Event Tickets Plus order process

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1020651
    John Paul
    Participant

    Hi,,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

    #1020881
    George
    Participant

    Hey @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

    #1021153
    John Paul
    Participant

    many thanks

    #1021363
    George
    Participant

    Cheers! πŸ˜€

    #1075356
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘order process’ is closed to new replies.