Zen Cart Logo
Forums / All Other Contributions/Addons / Plain Text Order confirmation email not reading $email_order or is ignoring it.

Plain Text Order confirmation email not reading $email_order or is ignoring it.

Views: 611

Results 1 to 2 of 2
29 Apr 2014, 4:17 PM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
948
Plugin Contributions:
3

Plain Text Order confirmation email not reading $email_order or is ignoring it.

Using v1.5.2, I'm running into the following problem.

I went ahead and made the following changes to $email_order in /includes/classes/order.php and for some reason they aren't being reflected in the plain text version of the emails. Anyone have an idea on where I'm supposed to edit the email's plain text version at? Specifically the formatting o the strftime of the date ordered line, the "Hello," string on the second line, as well as the others. (Note: The non-standard DEFINES are in-fact defined in other parts of the code.

    $email_order = EMAIL_TEXT_HEADER . EMAIL_TEXT_FROM . STORE_NAME . "\n\n" .
    "Hello, " . $this->customer['firstname'] . ' ' . $this->customer['lastname'] . ",\n\n" .
    EMAIL_THANKS_FOR_SHOPPING . "\n" . EMAIL_DETAILS_FOLLOW . "\n\n" .
    EMAIL_THANK_YOU_SIGNATURE . "\n" . STORE_NAME . "\n" .
    EMAIL_SEPARATOR . "\n" .
    EMAIL_TEXT_ORDER_NUMBER . ' ' . $zf_insert_id . "\n" .
    EMAIL_TEXT_DATE_ORDERED . ' ' . strftime("%B %d, %Y @ %I:%M:%S %p %Z") . "\n\n" .
    EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
30 Apr 2014, 3:36 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Plain Text Order confirmation email not reading $email_order or is ignoring it.

Judging sole based on the code you posted, I would have expected it to immediately reflect the changes too.

So, either the changes didn't get uploaded to your server, or you've got other code later in that function that's replacing the output with something else.