Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Adding the order date to the admin/invoice.php?


Recommended Posts

Go to admin/invoice.php and back it up first


The find


$currencies = new currencies();


xxxx (some lines of code)





<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">


In the xxx code REPLACE with:


$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);

$order = tep_db_query("select orders_id, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

$order_query = tep_db_fetch_array($order);


include(DIR_WS_CLASSES . 'order.php');

$order = new order($oID);

$date = date('m/d/Y');


Then find



<td class="main"><b><?php echo "Order Number: ";?></b></td>

<td class="main"><?php echo "$oID";?> </td>



Underneath INSERT



<td class="main"><b><?php echo "Invoice Date: ";?><b></td>

<td class="main"> <?php echo tep_date_short($order_query['date_purchased']);?></td>



This should work, test and do the same for packingslip.php

Link to comment
Share on other sites


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

  • Create New...