Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Add text to Order Confirmation emails (Text email only)

    Being a UK store I have to provide customers with a copy of their rights under the Distance Selling Regulations in a durable medium. This means that just having it on the website is not enough.
    The simple solution is to include it on their order confirmation email.
    Inserting the relevant text in email_template_checkout.html file above the footer seems to be the easiest way for HTML emails.
    I am at a bit of a loss as to how to add it to text emails. I would very much appreciate it if someone could point me to the correct files to edit to insert text only in the text version of the Order Confirmation email.

    Many thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Add text to Order Confirmation emails (Text email only)

    /includes/classes/order.php
    See the send-order-email function

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Add text to Order Confirmation emails (Text email only)

    Or just edit one of the existing phrases already in the confirmation email, and add your extra text to that phrase.

    The fast way to find out which specific file to edit, especially for existing text, is by using the Developers Toolkit in your Admin:
    http://www.zen-cart.com/content.php?...-files-to-edit
    http://www.zen-cart.com/content.php?...lopers-toolkit
    .

    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
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Re: Add text to Order Confirmation emails (Text email only)

    Thanks.
    I' shall give it a go and report back.

  5. #5
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Re: Add text to Order Confirmation emails (Text email only)

    I've defined the statement in includes\languages\english\checkout_process.php as EMAIL_TEXT_DSR
    Where should I insert in /includes/classes/order.php?
    I tried adding below
    //addresses area: Billing
    $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
    and it was inserted into the email but it made the email double up - everything was duplicated .

    I added below
    $email_order .= PAYMENT_METHOD_GV . "\n\n";
    and it broke the checkout.

    Ideally I'd like to add it just above the disclaimer.

    Thanks.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Add text to Order Confirmation emails (Text email only)

    If you want it just above the disclaimer, then:
    PHP Code:
        $email_order .= EMAIL_TEXT_DSR "\n\n";
        
    // include disclaimer 
    .

    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.

  7. #7
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Re: Add text to Order Confirmation emails (Text email only)

    That's the one!
    Many thanks.

 

 

Similar Threads

  1. Add text to order confirmation emails
    By godt in forum Managing Customers and Orders
    Replies: 6
    Last Post: 6 Feb 2013, 11:23 PM
  2. Add Logo and Some Text in Order Confirmation Email
    By monty_burns in forum Managing Customers and Orders
    Replies: 6
    Last Post: 1 Jun 2012, 03:07 PM
  3. Add text in Order Confirmation email?
    By thobby in forum General Questions
    Replies: 0
    Last Post: 7 Sep 2008, 05:02 PM
  4. add custom text to order confirmation email
    By wolf99 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Sep 2007, 04:03 AM
  5. plain text order confirmation emails
    By tbrides in forum Basic Configuration
    Replies: 2
    Last Post: 5 Sep 2007, 01:33 AM

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