• Resolved mahtiniko

    (@mahtiniko)


    Hi,

    On WC_Email_New_Order there are hooks to send the _same_ new order email to admins, in case the order status changes. What is the point of that? How the admins benefit getting the exact same email every time time the order status changes? Specially when it is sometimes the admin himself, who is launching the event.

    The description is “New order emails are sent to chosen recipient(s) when a new order is received.”. But new order emails are sent every time on these scenarios: woocommerce_order_status_pending_to_processing_notification, woocommerce_order_status_pending_to_completed_notification, woocommerce_order_status_pending_to_on-hold_notification, woocommerce_order_status_failed_to_processing_notification, woocommerce_order_status_failed_to_completed_notification, woocommerce_order_status_failed_to_on-hold_notification

    In the admin panel, you can only enable all these notifications or totally disable the new order notification. It would be good, if one could just enable only “order created” email (and an option to separately receive a different order status changed email – in case the change has been made automatically and not from the admin panel).

    Kind regards,
    Niko

    • This topic was modified 6 years, 11 months ago by mahtiniko.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Dustin Hartzler

    (@dustinhartzler)

    Automattic Happiness Engineer

    Hey Niko,

    This is definitely not WooCommerce’s default behavior. The email should only trigger once.

    I suspect a conflict with another plugin on your site. Can you try deactivating all plugins except for WooCommerce and try changing statuses and see if more emails are sent? Thanks!

    Joel Williams

    (@joelwills)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks!

    I am actually having this same issue, and I have no idea why. I have used this in my functions file but it doesn’t do anything for some reason.

    remove_action( 'woocommerce_order_status_pending_to_completed_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
    

    I am not sure how else to debug this. I don’t want our admins to receive this completed email which they confuse with seeing a brand new order.

    Please help. Thanks.

    Hi,

    I have same problem..
    When I am testing on localhost, is all good, but on live website, admin receive emails about “new order” even if there is only status change.

    Another problem is, that when I want to complete order with this button

    View post on imgur.com

    or with this

    View post on imgur.com

    it does not change status to completed and admin still get email about “new order”.

    I have disabled all plugins and problem is still there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin changes order’s status => new order email every time’ is closed to new replies.