Page 2 of 2

Re: Add time to orders

Posted: Tue Jan 28, 2014 2:13 am
by venkatesh1993
Ok I solved it.
I just added a new variable in admin/language/de_DE(in my case)/de_DE.php:

Code: Select all

$_['date_time']				  =	'd.m.Y H:i';
And changed the variable from "date_format_short" to "date_time" in admin/controller/sale/order.php and the result will be like 27.01.2014 20:00
Hope this helps out.

If this is hard for some people, you could just modify the admin/language/english/english.php:

Code: Select all

$_['date_format_short']       = 'd/m/Y';
to

Code: Select all

 $_['date_format_short']       = 'd/m/Y H:i;
and then you don't need to modify the file in controller/sale/order.php

Re: Add time to orders

Posted: Thu Nov 27, 2014 8:04 pm
by sesoft6
Please can you tell me how do I add the time on the Print (INVOICE) Page??

Re: Add time to orders

Posted: Fri Dec 05, 2014 6:10 pm
by sesoft6
Bundle of THANKS! I really love this forum. :)

Re: Add time to orders

Posted: Fri Feb 13, 2015 6:59 pm
by sesoft6
Thanks All for Help me..



hamarydramas.tk

Re: Add time to orders

Posted: Fri Mar 13, 2015 6:11 am
by dan74mm
sesoft6 wrote:Please can you tell me how do I add the time on the Print (INVOICE) Page??
To display time on invoice, search:

Code: Select all

'date_added'       => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])),
... and replace with:

Code: Select all

'date_added'       => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])).' '.date($this->language->get('time_format'), strtotime($order_info['date_added'])),
Have fun ...

Re: Add time to orders

Posted: Wed Oct 03, 2018 12:29 am
by cmsroom