Forums / Managing Customers and Orders / Current date on Invoice

Current date on Invoice

Locked

Started by gonzon on 14 Aug 2007, 10:37 AM · Views: 2,128

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Aug 2007, 10:37 AM
#1
gonzon avatar

gonzon

New Zenner

Join Date:
Jul 2007
Posts:
22
Plugin Contributions:
0

Current date on Invoice

Hi, im having a little problem once more. On the invoice we have the order date. I want this to show the current date, that is the date when i print the invoice out as the order date is not important for me.

Is there any way to modify the order date code:

<td class="main"><?php echo zen_date_long(getdate($order->info['date_purchased'])); ?></td>

And get it to show the current date. Was thinking something like getdate but i dont know enough php to get it to work.

Have a great day
Gunnar

14 Aug 2007, 6:44 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Current date on Invoice

You're printing this from your browser, right ?

Your browser page-layout settings typically include the date automatically.
If the date has been removed from the settings, you can easily add it back, perhaps as part of your page header or footer.

That might be a lot easier than modifying code that you have to re-modify next time you upgrade.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Feb 2009, 9:06 PM
#3
ivanc avatar

ivanc

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0

Re: Current date on Invoice

DrByte:

You're printing this from your browser, right ?

Your browser page-layout settings typically include the date automatically.
If the date has been removed from the settings, you can easily add it back, perhaps as part of your page header or footer.

That might be a lot easier than modifying code that you have to re-modify next time you upgrade.

this is not a real option in some countries, the date needs to be stated in a similar way that the date ordered is displayed right now, putting current date in header or footer won't do

im struggling with the problem also, so any help on how to change the date ordered to current date would be greatly appreciated!