Today my Client told me to add a second email address when an order will be completed and it should receipt to store manager user!!!
By Default woocommerce does not sent confirmation email to admin or store manger. Then i google it, after sometime i found a plugin. if you want to use any plugin then this plugin for you.
But there are another way if you does not want to use plugin. use the following code to functions.php
add_filter( 'woocommerce_email_headers', 'mycustom_headers_filter_function', 10, 2); function mycustom_headers_filter_function( $headers, $object ) { if ($object == 'customer_completed_order') { $headers .= 'BCC: My name <[email protected]>' . "\r\n"; } return $headers; }
change your desire email address. if you want to sent the order confirmation email only to store manager or any other role base user just go to wordpress dashboard then
user -> find the role you want to add then find the email address of the user. replace the email address with the above [email protected] email address.
Great….You…Done…
Note: Before apply this this code sniped i suggest make a backup of your site.
If you find this article helped you, Please comment below and share it.