Post by venkatesh1993 » Tue Jan 28, 2014 2:13 am

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

Newbie

Posts

Joined
Fri Jan 03, 2014 4:05 am

Post by sesoft6 » Thu Nov 27, 2014 8:04 pm

Please can you tell me how do I add the time on the Print (INVOICE) Page??

Attachments

1-1.jpg

1-1.jpg (45.97 KiB) Viewed 750 times


==============================
http://www.amicusstore.co.uk


Newbie

Posts

Joined
Thu Nov 27, 2014 5:42 pm
Location - Multan

Post by sesoft6 » Fri Dec 05, 2014 6:10 pm

Bundle of THANKS! I really love this forum. :)

==============================
http://www.amicusstore.co.uk


Newbie

Posts

Joined
Thu Nov 27, 2014 5:42 pm
Location - Multan

Post by sesoft6 » Fri Feb 13, 2015 6:59 pm

Thanks All for Help me..



hamarydramas.tk
Last edited by sesoft6 on Tue Jun 16, 2015 3:26 pm, edited 1 time in total.

==============================
http://www.amicusstore.co.uk


Newbie

Posts

Joined
Thu Nov 27, 2014 5:42 pm
Location - Multan

Post by dan74mm » Fri Mar 13, 2015 6:11 am

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

New member

Posts

Joined
Sat Oct 22, 2011 11:08 am

Post by cmsroom » Wed Oct 03, 2018 12:29 am


You may like these extension : - https://www.opencart.com/index.php?rout ... er=cmsroom


Newbie

Posts

Joined
Fri Sep 28, 2018 1:37 am
Who is online

Users browsing this forum: No registered users and 15 guests