Jump to content
mrio12

Fatal Error (Order -> Total_Paid = 911,91) - Incorrect Separator ?

Recommended Posts

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 by mrio12 (see edit history)

Share this post


Link to post
Share on other sites

Problem solved. I forgot that I have edited FrontController.php and added below line setLocale with argument pl_PL

Share this post


Link to post
Share on other sites

ps doesn't use the locale for pricing/pricing formatting/conversion etc....

 

re, your fix...:) we are our own worse enemies at times

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More