Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    I'm sorry. I missed the difference between the two lines. That is why I am not very good at this. I have moved it to the correct place. I am reading like crazy to try and learn as much of this as I can. It's just going to take some time.

    Thank you very much for your help!!!!

  2. #12
    Join Date
    Sep 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    Quote Originally Posted by DrByte View Post
    Assuming you're referring to text-only emails (not html-formatted emails):

    /includes/classes/order.php
    around line 1047 you'll see a line like this:
    Code:
           $this->notify('NOTIFY_ORDER_INVOICE_CONTENT_FOR_ADDITIONAL_EMAILS',  array('zf_insert_id' => $zf_insert_id, 'text_email' =>  $email_order, 'html_email' => $html_msg));
    Add this above it:
    Code:
          // add customer address to top of admin confirmation email
          if ($this->content_type != 'virtual') {
            $email_order = str_replace(
            // original text
            EMAIL_TEXT_HEADER . EMAIL_TEXT_FROM . STORE_NAME . "\n\n" .
            $this->customer['firstname'] . ' ' . $this->customer['lastname'] . "\n\n" .
            EMAIL_THANKS_FOR_SHOPPING ,
            // replacement text
            EMAIL_TEXT_HEADER . EMAIL_TEXT_FROM . STORE_NAME . "\n\n" .
            $this->customer['firstname'] . ' ' . $this->customer['lastname'] . "\n" .
            $this->customer['telephone']. "\n\n" .
            zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") .
            EMAIL_THANKS_FOR_SHOPPING,
            // source of data being updated
            $email_order);
          }
    How could I add the order date and time to this as well.

    So it would look like this
    // replacement text
    EMAIL_TEXT_HEADER . EMAIL_TEXT_FROM . STORE_NAME . "\n\n" .
    ORDER DATE ORDER TIME
    $this->customer['firstname'] . ' ' . $this->customer['lastname'] . "\n" .
    $this->customer['telephone']. "\n\n" .
    zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") .
    EMAIL_THANKS_FOR_SHOPPING,
    // source of data being updated

  3. #13
    Join Date
    Jan 2004
    Posts
    58,257
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    The email is already date/time stamped with the date and time the order was placed, because the email is sent in the same minute.

    But if you REALLY need to add that too, replace your "ORDER DATE ORDER TIME" line with:
    Code:
    date('Y-m-d H:i') .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #14
    Join Date
    Sep 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    I did not notice this thread was started as a text email thread. I am trying to place a date and time into the body of the html email. Basically what I want to happen is to get the telephone and time stamp out of the $extra_info box so I can delete that completely off the email. Every order is printing 2 pages because I get a bunch of info I do not need. We take orders over the phone into Zen-Cart so most orders have my ip address and my host address which causes the 2nd page to print.

    Thank you.

  5. #15
    Join Date
    Jan 2004
    Posts
    58,257
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    Reference: http://www.zen-cart.com/content.php?...te-system-work

    Add this to the other $html_msg vars in that section of the code:
    $html_msg['ORDER_DATE'] = 'Order Time: ' . date('Y-m-d H:i');

    Then add $ORDER_DATE into the email html template file wherever you want it to show.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #16
    Join Date
    Sep 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Can I add extra customer address info to admin copy of order confirmation email?

    Thank you so much!!! I have spent most of the day on this and was very close. That link you sent me will help out a great deal in the future!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Changing font size on admin copy of Order Confirmation email
    By mkyle in forum Managing Customers and Orders
    Replies: 2
    Last Post: 21 Jun 2012, 03:09 PM
  2. customizing order email, copy customer address + phone
    By fakeDecoy in forum General Questions
    Replies: 7
    Last Post: 20 Dec 2011, 09:16 PM
  3. Admin Email copy of order confirmation
    By Tech NO Babble in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Aug 2010, 01:13 PM
  4. Email copy of customer order to second email address
    By WHOSYOURDADDY in forum Customization from the Admin
    Replies: 2
    Last Post: 13 Oct 2009, 03:31 AM
  5. 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
  •