Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

display most recent order comment on /account.php


Guest

Recommended Posts

Posted

most customers don't seem to realize they can click on their order number in account.php to retrieve it's details.

i would like to display a big box in /account.php right beneath the header with the most recent order comment.

 

i have tried:

<?php

$check_my_query = tep_db_query("select comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . (int)$oID . "' order by date_added limit 0,1");
$my_querry_result = tep_db_fetch_array($check_my_query);
$cID = $my_querry_result['customers_id'];

echo $check_status['comments']; ?>

 

but nothing displays (no errors either)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...