Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

comments in order emails


Guest

Recommended Posts

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

Best wishes

Steve

Link to comment
Share on other sites

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

 }

Best Regards

olby

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...