1 reply [Last post]
2shortstories's picture
Offline
Joined: 08/29/2007
Juice: 73
Was this information Helpful?

PHP newbie here... tried to add a "purchase time" column to the "view orders" page and only succeeded in adding a blank column. No idea on how to call to the database and load the data from there...

Our store is running Alpha7e, don't know if this matters.

Help, anyone?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Add "purchase time" column to orders page?

Hmm... I'm assuming you added the purchase time to the $header array around lines 1063-1070? After that, add a line after this line:

<?php
 
// Around line 1128
 
array('data' => format_date($order->created, 'custom', 'm/d/Y'), 'align' => 'center'),
?>

That just copies that line but changes 'm/d/Y' to a format string for the time. Read about possible formats here.