snitchy Posted February 17, 2009 Share Posted February 17, 2009 Hello to all,I've been playing around with this excellent shopping cart for a few weeks now and almost have it working exactly how I want it, apart from one small thing.I'm based in the UK, and so are all my customers, so me being picky I really don't like it that whenever there is a date it's always showing as yyyy/mm/dd. In the UK it's dd/mm/yyyy and I'd really like to be able to change this.So far I've seen it on the PDF's that are created, and in the 'My Account area', so if someone could point me in the right direction to change this then that would be great Thanks for your time! Link to comment Share on other sites More sharing options...
MarkF Posted February 18, 2009 Share Posted February 18, 2009 me too!Also date picking on the Stats pages is in MM-DD-YYYYRegardsMark Link to comment Share on other sites More sharing options...
rocky Posted February 18, 2009 Share Posted February 18, 2009 I haven't found a way to do this using the back office, only by modifying code.Insert at line 291 of classes/Tools.php: else if ($language AND strtolower($language['iso_code']) == 'en') return ($tmpTab[2].'/'.$tmpTab[1].'/'.$tmpTab[0].($full ? $hour : '')); You can use else if statements to define the format for multiple languages if required. Just change 'en' to the code of the iso code of the country. Link to comment Share on other sites More sharing options...
cerberus22 Posted February 18, 2009 Share Posted February 18, 2009 Hi All,here is some more info about setting uk date :http://www.prestashop.com/forums/viewthread/2667/installation_configuration___upgrade/date_formatHere is some info about setting uk address format : http://www.prestashop.com/forums/viewthread/12192/general_discussion/order_of_the_address_guide_uploaded(Have not tried them myself)Cerberus22 Link to comment Share on other sites More sharing options...
snitchy Posted February 18, 2009 Author Share Posted February 18, 2009 Thanks for that guys, I feel pretty stupid that I didnt manage to find that date thread even though I did a search! :red: Oh well, all sorted now anyway, thanks again! Link to comment Share on other sites More sharing options...
MarkF Posted February 18, 2009 Share Posted February 18, 2009 Thanks from me too!I didn't find that in search eitherPresumably this means keeping file backups in case of an upgrade? Link to comment Share on other sites More sharing options...
cerberus22 Posted February 18, 2009 Share Posted February 18, 2009 yes make and keep backups just in case. If you do upgrade the modifcations you have done will be deleted. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now