Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    7
    Plugin Contributions
    0

    Default Customer's Email in Order Confirmation Email

    How to i have the customer's email be in the "From:" in the Order Confirmation Email? More clearly, when a customer order 2 confirmation are sent out, one to the customer with From: = [email protected] To: [email protected], and the other one goes to the admin with From: = [email protected] To: [email protected]. How do i change the From: = customers_email_address To: = [email protected]??? What i mean is to have the copy of the order confirmation email to the admin with the From id is the customer email address so that when I hit reply it will automatically input the customer's email into the To: box.
    Is that clear or have i make it even more confusing? Help me!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Customer's Email in Order Confirmation Email

    in /includes/functions/functions_email.php
    around line 219 (v1.3.8) you'll see this:
    Code:
          $email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : (in_array($module, array('contact_us',  'tell_a_friend')) ? $from_email_address : EMAIL_FROM);
          $email_reply_to_name    = ($email_reply_to_name)    ? $email_reply_to_name    : (in_array($module, array('contact_us',  'tell_a_friend')) ? $from_email_name    : STORE_NAME);
    add 'checkout_extra', as shown:
    Code:
          $email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : (in_array($module, array('contact_us',  'tell_a_friend', 'checkout_extra')) ? $from_email_address : EMAIL_FROM);
          $email_reply_to_name    = ($email_reply_to_name)    ? $email_reply_to_name    : (in_array($module, array('contact_us',  'tell_a_friend', 'checkout_extra')) ? $from_email_name    : STORE_NAME);

    Or you could just use your Admin area instead, and send email to the customer directly from the order page, including shipping status updates, tracking numbers, etc. This would keep all the info about the order in one place, online, accessible directly by the customer from their My Account area.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. How to edit Customer Order Confirmation email?
    By kdipaolo in forum General Questions
    Replies: 1
    Last Post: 12 Dec 2011, 09:51 PM
  2. Order Confirmation email missing customer address?
    By azwli in forum General Questions
    Replies: 19
    Last Post: 6 Nov 2009, 06:58 AM
  3. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR