Guest Posted January 15, 2003 Share Posted January 15, 2003 Hi, Is there a contribution that puts comments into the emails that customers get? In my shop they only appear on the invoice and on order history page. Quote Link to comment Share on other sites More sharing options...
livefooduk Posted January 16, 2003 Share Posted January 16, 2003 I too have been trying to work this one out, but I do not understand php very much (to say the least) Below is the line of code from admin/orders,php that writes the body of the email $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" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); I have tried adding (before the ; ) . $order->info['comments'] . "nn" to the end of that line but it did not work, surely some clever person out there must be able to add something to that line to add the comments to the emails ? Or at least tell us why it can't be done Quote Best wishes Steve Link to comment Share on other sites More sharing options...
♥olby Posted January 17, 2003 Share Posted January 17, 2003 Which version/snapshot are you running. I snapshots from 2003, the comments - and changes to them in admin, can be selected to be send to the customers. When a customer completes an order, these excisting lines in checkout_process.php ships the comments with the confirmation e-mail: if ($order->info['comments']) { $email_order .= $order->info['comments'] . "nn"; } Quote Best Regards olby Link to comment Share on other sites More sharing options...
livefooduk Posted January 17, 2003 Share Posted January 17, 2003 I am using a late Nov. 2.2 snapshot and it has those lines in checkout_process.php but the comments do not get included in the emails :cry: Quote Best wishes Steve Link to comment Share on other sites More sharing options...
livefooduk Posted January 24, 2003 Share Posted January 24, 2003 Here is the answer http://www.www.oscommerce.com/forums/viewtopic...1752&highlight= A user called Birdbrain pointed out this for me on another thead, so thank you Birdbrain for showing me where to look and Cheng Yu for posting the answer :D Quote Best wishes Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.