• Hi everyone

    I just read through this thread and hoped to find the solution for my issue there. It seems a couple of other people have the following issue as well.

    The goal is to disable the internal (admin) email for the order status change from Payment pending to Completed.
    I tried this little code snippet and added it to my child theme functions.php file. Unfortunately, emails are still sent:

    /**
     * Unhook and remove WooCommerce default emails.
     */
    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_completed_notification', array(
    		$email_class->emails['WC_Email_New_Order'], 'trigger' 
    	) );
    }

    Any ideas how to fix this?
    I am super thankful for any useful hint.

    Cheers
    Michael

Viewing 6 replies - 1 through 6 (of 6 total)
  • wp-admin/admin.php?page=wc-settings&tab=email

    enable/disable

    Thread Starter Michael Sutter

    (@michih)

    Hi crslz

    Thanks for your reply.
    I checked these WC settings there previously, but could not find a solution for my issue.

    Could you please describe in more detail what you exactly mean and how this addresses my original question?
    I do not want to disable all mails with the subject “new order”, but the internal emails after an order status change.

    Thanks,
    Michael

    Thread Starter Michael Sutter

    (@michih)

    Could anyone from WooCommerce support please help me here?

    Thanks a lot and best regards
    Michael

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    Hi there,

    The Order Complete email can be disabled without code by clicking on Manage then unchecking the box to enable it:

    https://cld.wthms.co/pFooWV
    Link to image: https://cld.wthms.co/pFooWV

    Thread Starter Michael Sutter

    (@michih)

    Hi Kenin

    Thanks a lot for your reply – really appreciate it.

    I think there is still a misunderstanding here. I do not want to disable it in general. It should only be disabled to be sent internally.

    If I disable it there this means the shop customer does not receive it either, right? Again, this is not what I want.

    Do you understand what I mean?

    Thanks a lot
    Michael

    Thread Starter Michael Sutter

    (@michih)

    Updated status to “not resolved”.
    Check my last comment above please.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Internal emails sent for order status change’ is closed to new replies.