Jump to content
Sign in to follow this  
bobg7

Adding the Order Time With the Order Date

Recommended Posts

I have installed the Batch Print Center and it seems to be working very well, however I would also like to be able to print the TIME the order was placed.

 

I will be using the Integrated Packing template and I see the code for order date:

 

// order date
if ($HTTP_POST_VARS['show_order_date']) {
$pdf->ezSetY($dup_y);
$pdf->ezText("<b>" . TEXT_ORDER_DATE . " </b>" . date(TEXT_ORDER_FORMAT, strtotime($order->info['date_purchased'])) ."\n\n",SUB_HEADING_FONT_SIZE,array('justification'=>'right'));
}

$y -= 10;

 

In the database table orders > date_purchased the format is YYYY-MM-DD HH:MM:SS but it only prints the date but not the time.

 

So how can I get it to display the time with the date?

 

Thanks in advance,

Bob G


Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×