New Zenner
- Join Date:
- Oct 2008
- Posts:
- 31
- Plugin Contributions:
- 0
[NEW ORDER] Reply Email Address as Customer -- FIX!
I searched everywhere for an answer for this, and all I found were closed threads with solutions that didn't work with the newer versions of Zen Cart.
My issue was that I needed the "reply-to" address of the order copy emails to be that of the customer so my client could easily just hit the "reply" button in Outlook instead of going into the store's admin area and submitting a note to them that way. As it was, the reply address was set to the store's default email address, so clicking "reply" sent a message back to the store. Client was not happy about this as he hated having to copy and paste the email address from the order into the reply field of a new message. After much searching and trying solutions that just didn't work, I played around with the order.php file and have the solution here for anyone else who had been looking for a way to do this.
at the bottom of includes/classes/order.php, find:
$email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
Replace with:
$email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra', $this->attachArray);
This will show the "From" as the customer name instead of the store name, and the reply-to email as the customer, not the store.
In your Admin > Email Options make sure "must send emails from known domain" is false.
Hope it helps someone else!