Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    22
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.

  3. #3
    Join Date
    Dec 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Current date on Invoice

    Quote Originally Posted by DrByte View Post
    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!

 

 

Similar Threads

  1. Current Date in Header?
    By jagall in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 May 2012, 11:42 PM
  2. v139h Order date on Invoice is server date/time
    By Kenton in forum Managing Customers and Orders
    Replies: 3
    Last Post: 28 Feb 2012, 06:22 AM
  3. Replies: 1
    Last Post: 23 Nov 2009, 07:55 AM
  4. INvoice Date
    By stecrox in forum Managing Customers and Orders
    Replies: 0
    Last Post: 12 Mar 2008, 10:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg