Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding the Order Time With the Order Date


bobg7

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...