Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wanna show order date in admin/invoice.php


runnenberg

Recommended Posts

Posted

hey,

 

i wanna show the order date in admin/invoice.php

 

so when i print out an invoice i can show the order date to my customers..

 

does anyone have a little code 4 that? or a suggestion?

 

Thankz in advance!

Posted

In admin/includes/languages/english/invoice.php add:

 

define('ENTRY_ORDER_DATE','Order Date:');

 

In admin/invoice.php add this just below the line near the top that reads " $order = new order($oID);"

 

       $date_query = tep_db_query("select date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
      $date = tep_db_fetch_array($date_query);

 

And then place this wherever you want the date to appear:

 

      <tr>
       <td class="main"><b><?php echo ENTRY_ORDER_DATE; ?></b></td>
       <td class="main"><?php echo tep_datetime_short($date['date_purchased']); ?></td>
     </tr>

 

I just put it below where it says-

      <tr>
       <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
       <td class="main"><?php echo $order->info['payment_method']; ?></td>
     </tr>

 

HTH

Archived

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

×
×
  • Create New...