Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default change order status email content

    Hi,

    I wanted to add text into the emails that are automatically sent by zen cart. For example, I want the order confirmation to remain pretty much the same, but I want the order update for the processing stage to read: "Your credit card has been approved"
    and the delivered status email to read: "Your order has been shipped. etc."

    Is there a way to do this?

  2. #2
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default Re: change order status email content

    ok, I found this code on another site, apparently it goes in 2 places in the admin/orders.php:

    1) The first place applies to the text version of the email and you can do something like ...

    EMAIL_TEXT_STATUS_UPDATED . sprintf(EMAIL_TEXT_STATUS_LABEL, $orders_status_array[$status] );
    if ( $orders_status_array[$status] == "Processing" ) {
    $message = $message . "\n\n" .
    "Your custom message for processing status here "
    } else if ( $orders_status_array[$status] == "Delivered" ) {
    $message = $message . "\n\n" .
    "Your custom message for delivered status here"
    }


    2) The second place applies to the HTML version of the email. For example ...

    $html_msg['EMAIL_TEXT_STATUS_PLEASE_REPLY'] = str_replace('\n','<br>', $message);

    when I try to check orders from the admin ( back end ) of the site I get this error:

    Parse error: syntax error, unexpected T_ELSE in /mounted-storage/XXXXX/XXXXX/XXXXXX/adultworld.net.au/store/admin/orders.php on line 114

    I have included the .php file, if anyone knows how to solve this problem please reply.

    Thanks

  3. #3
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default Re: change order status email content

    Sorry I can't seem to attatch the .php file, and the I put the wrong error message up. :)

    The real error message read:

    Parse error: syntax error, unexpected "}" in /mounted-storage/XXXX/XXXX/XXXX/adultworld.net.au/store/admin/orders.php on line 114

 

 

Similar Threads

  1. v139h Change Order Status Name and Change Email Text
    By traytray in forum General Questions
    Replies: 0
    Last Post: 10 Nov 2013, 04:29 AM
  2. Order Status Email - Change colour of comments
    By amyleew in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jul 2010, 04:16 PM
  3. change order status but do not want to send customer email
    By jrf in forum Managing Customers and Orders
    Replies: 6
    Last Post: 10 May 2009, 09:40 PM
  4. change email content for order confirmations?
    By mickyoung in forum General Questions
    Replies: 1
    Last Post: 14 Nov 2008, 03:48 PM
  5. Email Burst on change in order status
    By mtromp in forum Managing Customers and Orders
    Replies: 2
    Last Post: 25 Mar 2008, 04:19 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