WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] Add customer name to Default Paypal email subject (3 posts)

  1. hijinksensue
    Member
    Posted 1 year ago #

    Is is possible to add something like {NAME} to the subject of the default paypal email so that when the customer gets an email the subject can read: "Here's your order, John Smith" for example?

    The reason this matter is because I am using the eShop Magic plugin to copy my fulfillment company on every customer order email and it would be helpful if they were able to see the name in the subject in order to tell the incoming orders apart.

    I tried just pasting {NAME} into the subject field and it went through as "{NAME}".

    Thanks!

    -Joel

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

  2. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    I'll see what I can do in a future release.

  3. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    added a filter for the next release:

    add_filter('eshop_customer_email_subject','my_eshop_customer_email_subject',10,2);
    function my_eshop_customer_email_subject($this_email,$array){
      global $eshopoptions;
      $this_email = str_replace('{NAME}', stripslashes($array['ename']), $this_email);
      return $this_email;
    }

    kept it similar to the eshop_email_parse function to make it easier for additions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags