WordPress.org

Ready to get started?Download WordPress

Forums

eShop
Customize fields for sent email to admin when notifying purchase (10 posts)

  1. Mauma
    Member
    Posted 2 years ago #

    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/

  2. elfin
    Moderator
    Plugin Author

    Posted 2 years ago #

    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/

  3. Mauma
    Member
    Posted 2 years ago #

    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 !

  4. esmi
    Forum Moderator
    Posted 2 years ago #

  5. Mauma
    Member
    Posted 2 years ago #

    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 !

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Did you read all of the content on that page?

  7. Mauma
    Member
    Posted 2 years ago #

    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

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    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...

  9. Mauma
    Member
    Posted 2 years ago #

    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

  10. esmi
    Forum Moderator
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic