Addy Posted January 19, 2004 Share Posted January 19, 2004 I would like the invoicenumber and ordernumbers to show up on the prints and in emails. Is this a possibility? Link to comment Share on other sites More sharing options...
Addy Posted January 20, 2004 Author Share Posted January 20, 2004 :huh: Guess not... I'll have to fix myself... Link to comment Share on other sites More sharing options...
241 Posted January 20, 2004 Share Posted January 20, 2004 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! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Addy Posted January 29, 2004 Author Share Posted January 29, 2004 I have been searching and growing a beard... anyone? Please? Link to comment Share on other sites More sharing options...
Addy Posted January 29, 2004 Author Share Posted January 29, 2004 GOT IT!!! On the Invoice.php, put somewhere: <? echo $oID; ?> and voila... Cheers, and thanks! :lol: Link to comment Share on other sites More sharing options...
osjunkie Posted February 1, 2004 Share Posted February 1, 2004 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 More sharing options...
jonesboy Posted February 4, 2004 Share Posted February 4, 2004 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 More sharing options...
Addy Posted February 11, 2004 Author Share Posted February 11, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.