VIXUS Posted April 28, 2009 Share Posted April 28, 2009 1. where to set/change CURRENCIE format to 0.000,00 XX? (Back Office >> Payment >> Currencies - dont have this desired format 0.000,00 XX)2. where to change DATE Format: YYYY-MM-DD HH:MM:SS to DD. MM. YYYY HH:MM:SSThanx! Link to comment Share on other sites More sharing options...
VIXUS Posted April 29, 2009 Author Share Posted April 29, 2009 To baad no one knows this...Iw helped my self on currencie format in tools.phpIw found possible and date format there but i dont know how to edit this to get date format as dd.mm.yyyy.anyone? Link to comment Share on other sites More sharing options...
rocky Posted April 29, 2009 Share Posted April 29, 2009 For your first question, have you tried selecting the third currency option (X0.000,00) and then changing the code in Tools.php from: case 3: $ret = $c_char.$blank.number_format($price, $c_decimals, ',', '.'); to: case 3: $ret = number_format($price, $c_decimals, ',', '.').$blank.$c_char; For your second question, have you tried changing the displayDate function in Tools.php? if ($language AND strtolower($language['iso_code']) == 'fr') return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : '')); else return ($tmpTab[0].'-'.$tmpTab[1].'-'.$tmpTab[2].($full ? $hour : '')); You can change all '-' to '. ' and reverse the order of the $tmpTab indexes. Link to comment Share on other sites More sharing options...
VIXUS Posted April 29, 2009 Author Share Posted April 29, 2009 iw managed to edit this way currencie to desired format but i cant change the date...what ever i do, date stays the same YYYY-MM-DDhelp needed... Link to comment Share on other sites More sharing options...
rocky Posted April 29, 2009 Share Posted April 29, 2009 Which dates are still appearing in the old format? Is it all of them or just some? I think the date format is hardcoded in some places like price reductions, but most dates use the displayDate function. Did you modify the right line in the code above? If you only changed the first one and not the second one, it will only work when the language is set to French. Link to comment Share on other sites More sharing options...
VIXUS Posted April 30, 2009 Author Share Posted April 30, 2009 excellent iw found it! if ($language AND strtolower($language['iso_code']) == 'uk') return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : '')); else return ($tmpTab[2].'-'.$tmpTab[1].'-'.$tmpTab[0].($full ? $hour : '')); it shud look like this!!!tnx mate! Link to comment Share on other sites More sharing options...
VIXUS Posted April 30, 2009 Author Share Posted April 30, 2009 double Link to comment Share on other sites More sharing options...
dettotranoi Posted May 3, 2009 Share Posted May 3, 2009 where is tools.php? Link to comment Share on other sites More sharing options...
Dave Egerton Posted May 4, 2009 Share Posted May 4, 2009 you should find tools.php inside the classes folder Link to comment Share on other sites More sharing options...
chustaweb Posted September 4, 2009 Share Posted September 4, 2009 Hi,Thanks for your help, this make all date format changes but less on javascript calendar.Who knows where to change to set d-m-Y on Calendar and Monday as first day?MANY THANKS IN ADVANCE !!! Link to comment Share on other sites More sharing options...
mhu100 Posted October 2, 2009 Share Posted October 2, 2009 It's not working for me. I get the following error:Warning: Cannot modify header information - headers already sent by (output started at \shop\httpdocs\rc123\classes\Tools.php:1) in \shop\httpdocs\rc123\adminrc\header.inc.php on line 15 Link to comment Share on other sites More sharing options...
fda82 Posted December 15, 2009 Share Posted December 15, 2009 I have the same problem that mhu100, someone have this trouble too? Link to comment Share on other sites More sharing options...
goosedesign Posted December 17, 2009 Share Posted December 17, 2009 This is great until you try to add vouchers in admin and it says the date is invalid.EDIT sorry it has nothing to do with the problem I'm having. Seems the calendar does not insert valid times in the voucher admin. Link to comment Share on other sites More sharing options...
higorvaz Posted May 7, 2011 Share Posted May 7, 2011 It's not working for me. I get the following error:Warning: Cannot modify header information - headers already sent by (output started at \shop\httpdocs\rc123\classes\Tools.php:1) in \shop\httpdocs\rc123\adminrc\header.inc.php on line 15 Hi all, peace from Brasil !!!This error occurs when you edit the file and save it with BOM signature, it is fixed removing BOM (Dreamweaver Control+J then T).About the date format, I believe it could be included at the Backend.This link explain too how edit the code:http://dapurpixel.com/how-to/change-date-format-in-prestashop/ Link to comment Share on other sites More sharing options...
Recommended Posts