You can’t create automatic emails to a third party company with eShop. The only automatic emails that the plugin sends out are to the shop owner and the customer.
Is there a workaround? How could the eshop shoppingcart function (for non-downloadable products) for volume sales if emails are forwarded one by one, by hand to the fulfillment company?
I found this code on quirm.net:
“Using this you can send a copy of the email sent to the customer to yourself to receive the nice formatted version.”
add_action(‘eshop_send_customer_email’,’myeshop_copy_email’,10,4);
function myeshop_copy_email($csubject, $this_email, $headers, $array){
$myemail=’EMAILADDRESS’;
wp_mail($myemail, $csubject, $this_email,$headers);
}
How do I use this code (where do I paste it)? Can I alter it to forward the email to a third party?
How do I use this code (where do I paste it)?
You can add it to your theme’s function.php file or use it within a small add-on plugin.
Can I alter it to forward the email to a third party?
In theory, you can hard code whatever email address you want into the function.
Many thanks!!! This worked. I added the code to eshop.php
Hi,
You can’t create automatic emails to a third party company with eShop. The only automatic emails that the plugin sends out are to the shop owner and the customer.
Who is the ‘shop owner’ and where is this entered into the back end. I have made my shop live and got one order, but I didn’t get an email.