Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Idea or Suggestion Tips on customizing Order Status emails

    Hi all,

    Been trying to figure out how to customize the Order Status email, and I finally got it working ! Just thought I'd share with y'all :)

    (This is for 1.3.7. Not sure if this is the best way to do it, but it works for me so here it goes...)

    First, backup the 2 files that you will be modifying, since the override system does not work in these directories :

    /admin/order.php
    /admin/includes/languages/your_language/orders.php

    Now let's assume we'll only add a footer to your Order Status emails.

    In /admin/order.php, find around line 110 :

    Code:
    EMAIL_TEXT_STATUS_PLEASE_REPLY;
    Change the ";" at the end of the line to ".", like this :

    Code:
    EMAIL_TEXT_STATUS_PLEASE_REPLY .
    Then, add one more line below it :

    Code:
    SHIRSTER_EMAIL_TEXT_STATUS_FOOTER;
    In /admin/order.php, find around line 121 :

    Code:
    $html_msg['EMAIL_TEXT_STATUS_PLEASE_REPLY'] = str_replace('\n','', EMAIL_TEXT_STATUS_PLEASE_REPLY);
    Add one more line below it :

    Code:
    $html_msg['SHIRSTER_EMAIL_TEXT_STATUS_FOOTER'] = str_replace('\n','', SHIRSTER_EMAIL_TEXT_STATUS_FOOTER);
    Now, go to /admin/includes/languages/your_language/orders.php, find around line 95 :

    Code:
    define('EMAIL_TEXT_STATUS_PLEASE_REPLY', 'Please reply to this email if you have any questions.' . "\n");
    Add one line below it :

    Code:
    define('SHIRSTER_EMAIL_TEXT_STATUS_FOOTER', 'Your footer text goes here' . "\n");
    If you want to have line breaks in your footer, add something like this instead :

    Code:
    define('SHIRSTER_EMAIL_TEXT_STATUS_FOOTER', 'Your footer text line one' . "\n" . 'Your footer text line two' . "\n");
    If you want more space above your footer message, change around line 95 :

    Code:
    define('SHIRSTER_TEXT_STATUS_PLEASE_REPLY', 'Please reply to this email if you have any questions.' . "\n\n");
    Of course, I'm only using 'SHIRSTER_EMAIL_TEXT_STATUS_FOOTER' simply because it's self-explanatory (to me anyway), and by using 'SHIRSTER' it's unlikely to conflict with zen cart's own constants if a footer message does get into core one day. Also, I will be able to search for all my customizations in the Developers Tool Kit later on and see where I've changed things.

    Please DO use a DIFFERENT name of your choice :)

    Shirley

  2. #2
    Join Date
    Mar 2007
    Location
    Deep in the Black Country, UK
    Posts
    34
    Plugin Contributions
    0

    Default Re: Tips on customizing Order Status emails

    Ahhaa, belated thankyou Shirley, this answers my question in another post!

 

 

Similar Threads

  1. Customizing Order Confirmation Emails
    By swilliams88 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Aug 2012, 08:52 PM
  2. customizing e-mails to customers for order status, etc.
    By marvin in forum Customization from the Admin
    Replies: 3
    Last Post: 10 Jul 2006, 12:39 AM

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