mrio12 Posted February 20, 2013 Share Posted February 20, 2013 (edited) Hello my problem with prestashop is when I try to go through the last step of order I get such error: Fatal error (Order -> total_paid = 911,91) I suppose it's because my localization is set to Polish and Prestashop uses dot instead of comma as a separator in numbers stored in the database. Here is part of FrontController.php file setlocale(LC_COLLATE, $locale); setlocale(LC_CTYPE, $locale); setlocale(LC_TIME, $locale); setlocale(LC_NUMERIC, 'en_US.UTF-8'); But here everything looks OK. And I don't know how to fix it? Anyone knows? Thanks in advance Edited February 20, 2013 by mrio12 (see edit history) Link to comment Share on other sites More sharing options...
mrio12 Posted February 20, 2013 Author Share Posted February 20, 2013 Problem solved. I forgot that I have edited FrontController.php and added below line setLocale with argument pl_PL Link to comment Share on other sites More sharing options...
El Patron Posted February 20, 2013 Share Posted February 20, 2013 ps doesn't use the locale for pricing/pricing formatting/conversion etc.... re, your fix... we are our own worse enemies at times 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