Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ordernumber on order/packageslib


Addy

Recommended Posts

It is possible and has been covered in the forum before, I cannot remember of the top of my head how it was done, it had something to do with adding a string.

 

Try doing a search

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

  • 2 weeks later...

Date and Time on Invoice

 

Hello, I figured out hot to put the invoice number on the invoice, but I am looking for a way to put the date on time on it as well.

 

If anyone knows anything, thanks in advance for your kind help.

 

Brad

Link to comment
Share on other sites

I didn't find a clean variable for the date of the order like Addy did for the order ID ( which woked like a charm by the way ).

 

But I did some searching in the scripts and found that this will add it.

 

<?php echo tep_datetime_short($order->info['date_purchased']); ?>

 

If anyone is actually still updating OScommerce.... it is simply unbelievable that the order number and order date aren't already in the supplied code. Move that to the TOP of your list in useful easy updates!

 

hope this helps!

 

B

Link to comment
Share on other sites

yeah.. the date was a problem as well... but just date() will do the trick nicely, like for example:

 

<?php echo date("m-d-Y"); ?>

 

Now this will not print the date when the order was made, but the current date, which I needed. If you don't want the date of printing but the date the order was made, then Jonesboy's solution is the one for you! (Good work by the way Jonesboy! :) )

 

I'm guessing that the time command will probably work similar...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...