Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Posts
    37
    Plugin Contributions
    0

    Default customer's order invoice purchase date -- can I add the time too?

    i was wondering if there'll be any advice offered for this help needed.

    at top-right corner of customer's order invoice, there's purchase date, instead of the date only, could it display the date and time together? if so, how?

    advice on this help needed is highly appreciated.

  2. #2
    Join Date
    Aug 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: customer's order invoice purchase date/time

    I would like to know this as well. Have searched the forum and found no answers.

  3. #3

    Default Re: customer's order invoice purchase date -- can I add the time too?

    This may not be the best way to do it but worked for me:

    /admin/includes/languages/english.php

    I changed:

    define('DATE_FORMAT_LONG', '%A %d %B, %Y');

    to:

    define('DATE_FORMAT_LONG', '%A %d %B, %Y, %I:%M %p');

    This will change order date to also display time on the orders page where zen_date_long is called. (This is good for my store because we do a lot of time-sensitive orders and time of order is important.)

    The same can be done on the catalog end to display the time in customer order history.

    PHP Time/Date format:
    http://php.net/manual/en/function.strftime.php
    [FONT=Trebuchet MS]If Wishes Were Ponies
    [/FONT]

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: customer's order invoice purchase date -- can I add the time too?

    If you have any concern about where else this might show up, you can search in Tools > Developers Toolkit. Paste DATE_FORMAT_LONG in the lower left box, select all files - catalog and search. This will show you all files where that format is used.
    You might want to do the same for zen_date_long.

 

 

Similar Threads

  1. Wrong date and time on order confirmation
    By paperthreads in forum General Questions
    Replies: 7
    Last Post: 3 Dec 2010, 02:04 AM
  2. Customer's detailed order invoice link not working...
    By scrappycat in forum Managing Customers and Orders
    Replies: 4
    Last Post: 25 Apr 2009, 04:09 AM
  3. Replies: 2
    Last Post: 28 Dec 2007, 01:07 AM

Bookmarks

Posting Permissions

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