I believe that when zencart was upgraded from 1.3.7 to 1.3.8 that there was an omission. Customer order comments are makred in admin/orders.php with a yellow square, the comments appear on the order, they appear on the invoices and packing slips. but although half set up, they don't appeared on the page where the yellow square is displayed even though the comments in the page suggest that this was the purpose. From orders.php line 874 I have:
Code:
// indicate if comments exist
$orders_history_query = $db->Execute("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . $oInfo->orders_id . "' and comments !='" . "'" );
if ($orders_history_query->RecordCount() > 0) {
$contents[] = array('align' => 'left', 'text' => '<br />' . TABLE_HEADING_COMMENTS);
}
whereas I believe it should be this in 1.3.8+
Code:
// indicate if comments exist
$orders_history_query = zen_get_orders_comments($oInfo->orders_id);
if ($orders_history_query!='') {
$contents[] = array('align' => 'left', 'text' => '<br />' . TABLE_HEADING_COMMENTS.':');
$contents[] = array('align' => 'left', 'text' => zen_get_orders_comments($oInfo->orders_id));
}
Which would match the rest of the upgrades and justify the existence of the new function.
Thank you
Philip.