Forums

[resolved] eshop automatic emails (7 posts)

  1. jmillstein
    Member
    Posted 1 year ago #

    I am new to wordpress and eshop, and nearly ready to go live with a simple shop. However, I cannot find documentation on how to set up automatic transaction confirmation emails. How do I setup an email with customer's address to be automatically sent to the fulfillment company? -- Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. jmillstein
    Member
    Posted 1 year ago #

    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?

  4. jmillstein
    Member
    Posted 1 year ago #

    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?

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  6. jmillstein
    Member
    Posted 1 year ago #

    Many thanks!!! This worked. I added the code to eshop.php

  7. Green2500S
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic