WooCommerce Send New Completed Order Email to Factory – WordPress

A new task for me that open WooCommerce capabilities and it’s a WOOOW, WooCommerce plugin almost has all what you need, so this time I’d like to share you guys another snippet to send New Completed Order Email to Factory (or to anyone you’d like to inform), this is useful if you want to let Factory know there was a new Completed Order rather than do a forwarding email from Admin to Factory.

So what we need here is add a new Settings under Email and in WooCommerce they have WC_Email Class ready to extend.

Let’s get started.

Copy the code below to your current theme functions.php or I strongly suggest copy and paste this into a new file and include it into a functions.php file instead, that save a lot of space in your functions.php file.

That’s it, Happy Coding ^_^

by Ryan Sutana

  • Ben Brown

    Thanks for the above. I would like to know if anybody can help me out with something I wan to do to automate my sales and order. I would like to send my admin-new-order.php page to a third party (namely my suppliers) and in doing so I only want them to see the Product and Quantity, SKU, and Sizes will also be sent. The cost that we charge customers should not be sent.

    So what we want in the admin-new-order.php page is something like this in the order table just for this email. A proper ‘You Have received a New Order’ page should be sent to admin to include the prices.

    I would like to know if there is a simple way to send this automatically when the order is placed by the client.

    The idea of this is to reduce repetition of re-typing orders to the suppliers and the packers.

    Any help much appreciated.

    • Hi,

      If you only want to change few information under “admin-new-order.php”, you can edit that page and update few information right in the template, back-up the option to your theme and do the changes in there.

      Hope that helps

  • Joseph

    Not sure what I should see under Email Setting once installed? Is their a screen shot of what I should see? I have added the code above to my functions.php file. But do not see anything to send a email to factory… Thanks for help