Jump to content

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

Recommended Posts



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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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