Forums / General Questions / change order status email content

change order status email content

Locked

Views: 1,622

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Nov 2008, 12:49 AM
#1
demz001 avatar

demz001

New Zenner

Join Date:
Sep 2008
Location:
Gold Coast, Australia
Posts:
56
Plugin Contributions:
0

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?:shocking:

Tooty Fruity

25 Nov 2008, 2:00 AM
#2
demz001 avatar

demz001

New Zenner

Join Date:
Sep 2008
Location:
Gold Coast, Australia
Posts:
56
Plugin Contributions:
0

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"
}

  1. 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

Tooty Fruity

25 Nov 2008, 2:06 AM
#3
demz001 avatar

demz001

New Zenner

Join Date:
Sep 2008
Location:
Gold Coast, Australia
Posts:
56
Plugin Contributions:
0

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

Tooty Fruity