Guest Posted February 1, 2003 Share Posted February 1, 2003 I need to add several paragraphs of text to the e-mail confirmation that is sent to the customer. Here are a couple of lines of code (around line 45) from /admin/orders.php } $email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } I believe this is where that e-mail is generated from. The text I need to add would be simply formated; Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc... Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc... Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc... Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc...Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc...Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc...Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc...Sample text sample text, sample text sample text sample text sample text sample text sample text, sample text etc... Can someone explain to me how to do this? With an 'include sometext.txt or with an 'echo' ? I am not much of a php guy, but I can read and follow simple instructions. :) I will need to change that text occasionally, but not often. Regards, Mike www.florist-shops.com <under construction< Link to comment Share on other sites More sharing options...
burt Posted February 1, 2003 Share Posted February 1, 2003 Try doing this: } $notify_comments .= "nnYour text here"; $email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } That might be a quick hack, untested, give it a go. Link to comment Share on other sites More sharing options...
Guest Posted February 1, 2003 Share Posted February 1, 2003 Thanks, But that did not work. Could it have something to do with a line a little above that code (around line 43) ? That would be the first line of the code you see here. $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "nn"; } $email = STORE_NAME . "n" . EMAIL_SEPARATOR . "n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "nn" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; Regards, Mike ------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.