1

By default the recipient is Admin but I want it send it to the customers email also. I saw WooCommerce send new order email to customer but it is not specifying where to put the code mentioned. I am a complete noob in WooCommerce so a detailed explanation would be appreciated. Thanks!

Community
  • 1
  • 1
Chirag Bohet
  • 13
  • 1
  • 1
  • 4
  • 1
    By default WooCommerce sends order mail to customer as well.try by placing an order with your (non-admin) email ID, and you will recive the mail. and one more thing you need to add that code in you active theme `functions.php` file – Raunak Gupta Mar 26 '17 at 10:42
  • @Raunak Oh alright, I was placing orders using my admin Email - ID so I was not receiving emails. I checked my active theme folder for functions.php file and I got 4 results - 1) shopisle\wp-content\themes\shop-isle\inc\woocommerce\functio‌​ns.php 2) shopisle\wp-content\themes\shop-isle\inc\customizer\function‌​s.php 3) shopisle\wp-content\themes\shop-isle\inc\customizer\customiz‌​er-repeater\function‌​s.php 4) shopisle\functions.php Which one do I need to edit? Thanks! – Chirag Bohet Mar 26 '17 at 11:44

2 Answers2

1

By default WooCommerce sends order mail to customer as well.

Try by placing an order with your (non-admin) email ID, provided your theme or any plugin restricting it.

Secondly you need to add that code in your active theme functions.php file. i.e.,

/wp-content/themes/my_active_theme/functions.php

or you can also add that code in any of the active plugin PHP file.

Hope this helps!

Raunak Gupta
  • 10,412
  • 3
  • 58
  • 97
0

Do not use the admin email-adress for testing. Just use another email adress.

Ensure that your hosting provider allows for sending emails.

No need to patch any WooCommerce code.

koppor
  • 19,079
  • 15
  • 119
  • 161