Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Posts
    53
    Plugin Contributions
    0

    Default Order confirmation emails

    I would like to add the order total to the subject line of the order confirmation email. I have figured out that this change would be made in includes/classes/order.php, but dont know php, could someone help me with this.

  2. #2
    Join Date
    Nov 2006
    Posts
    36
    Plugin Contributions
    0

    Default Re: Order confirmation emails

    Did you ever get the order total in the subject line? I'm wondering how to do that also.

    Thanks,
    -Dave

    http://www.strandland.com/digitalstore

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Order confirmation emails

    in the order class, you have a line like this:
    Code:
        zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order, STORE_NAME, EMAIL_FROM, $html_msg, 'checkout');
    adding the order total amount to the subject line of the customer's email could be as easy as this:
    Code:
        zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id . ' ' . $this->info['total'], $email_order, STORE_NAME, EMAIL_FROM, $html_msg, 'checkout');
    .

    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.

  4. #4
    Join Date
    Nov 2006
    Posts
    36
    Plugin Contributions
    0

    Default Re: Order confirmation emails

    Too cool! It works! Thanks so much, i'da never figured that one out without help.

    -dave

 

 

Similar Threads

  1. v154 Order confirmation emails and Contact Us emails not being received
    By jcrewe in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2015, 06:36 PM
  2. v153 Additional Order Confirmation & Order Update emails
    By dchquilling in forum General Questions
    Replies: 2
    Last Post: 13 Oct 2014, 05:04 PM
  3. Help: Not receiving [NEW ORDER] Order Confirmation Emails!
    By RocketFoot in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2011, 05:55 PM
  4. Order Confirmation Emails
    By customilluminations in forum General Questions
    Replies: 1
    Last Post: 21 May 2007, 07:37 PM

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