Support » Plugin: eShop » [Plugin: eShop] Customize fields for sent email to admin when notifying purchase

  • Mauma

    (@maumexgmailcom)


    Hi,

    I am trying to find where I can add or remove fields for email sent to administrator when a purchase is made.

    I can find the template for the user mail on e-shop > emails, and it is cool !

    But in there there is not a custom sheet for the email sent to administrator. When a purchase is made, admin recieves lots of empty fields that are not in use and it’s very difficult to read.

    We would like to customize it so it’s a bit neater, can you tell me how to do this ?

    Kind regards,
    Alejandro

    http://wordpress.org/extend/plugins/eshop/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author elfin

    (@elfin)

    not currently possible, but you can get a copy of what is sent to the customer if that is of any use. Check the wiki: http://quirm.net/wiki/

    Mauma

    (@maumexgmailcom)

    ouch… that would be good because the one sent to administrator is really a mess

    I looked the wiki but I can’t find that… would you be so kind to send me the link with direct instructions to get the copy of the email sent to the user also to administrator ?

    thanx !

    esmi

    (@esmi)

    Forum Moderator

    Mauma

    (@maumexgmailcom)

    perfect ! so I have to paste this:

    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);
    }

    would you be so kind and tell us where in the functions.php to paste it ? Before or after what line ? So that we don’t mess up with your script

    Thnx !

    esmi

    (@esmi)

    Forum Moderator

    Did you read all of the content on that page?

    Mauma

    (@maumexgmailcom)

    of course ! it says

    Add this function to your theme’s functions.php file to send a copy of the nicely formatted customer’s email to yourself.

    my specific question is which line, or where exactly inside that file so we don’t mess it up

    thanx

    esmi

    (@esmi)

    Forum Moderator

    It also says:

    These instructions are intended for those who are proficient in theme development. The relevant tutorials on developing & customising themes can be found on wordpress.org. If this is beyond you, we do offer a competitively-priced theme development service…

    Mauma

    (@maumexgmailcom)

    yes… that’s why I asked precisely…

    ok… don’t mind..

    i’ll figure it out myself testing with a safe backup till it works and then i’ll come back here to share with people

    thanx

    esmi

    (@esmi)

    Forum Moderator

    Bear in mind that the resulting solution will be different for every theme.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: eShop] Customize fields for sent email to admin when notifying purchase’ is closed to new replies.