I am building an ecommerce site using WordPress and Woocommerce. I need the site to send out a notification email to the site administrator when a new customer account is registered. I thought this functionality would be built into Woocommerce since it uses the WordPress user account structure and WordPress sends new user notifications, but it doesn’t appear to be. Does anyone know of a plugin or a function I can use to add this functionality? Thanks!
Leave a Reply
You must be logged in to post a comment.
I’m assuming that you are using html inside emails. If you are using plain text the procedure is similar.
You need to override the woocommerce template structure. Here you can find how: http://docs.woothemes.com/document/template-structure/.
Actually the only file you need to override is your_template_directory/woocommerce/emails/customer-new-account.php.
At the end of this file add this line of code:
In functions.php add this:
woocommerce_created_customer
is hook which is called when user created by woocommerce. It only sends notification to customer. we will use wp_new_user_notification() function to send notification to Admin.I was pulling my hair out trying to figure this same issue out and after going back and forth with the developers the default is to not send new customer registration notification emails to admin.
After trying various email plugins and even resorting to using WP SMTP Email, I finally decided to leave it alone.
That said, WooCommerce 2.0 was released today so it may be built in the new version.
the answers is in the emails sections of “
woocommerce / settings
“simply change the from email to wordpress@yourdomain.com
worked for me as i also had the same issues
To notify admin whn new user has registered use:
See documentation on https://woocommerce.com/document/notify-admin-new-account-created/