Jump to content

store always shows the decimals to zero


Recommended Posts

Hello,

 

My Prestashop 1.7.7 store always shows the decimals to zero.

But in the database they are correctly informed (with variable numbers, many times different from zero).

 

Kind regards,

Josep

Captura.PNG

Share this post


Link to post
Share on other sites

Thanks for the reply. I have 2 decimal places set, but it does not work.

I have temporarily fixed it by editing the source code:
/web/src/Core/Localization/Locale.php
function formatPrice
return number_format($number, 2, ',', '.').' €';

 

Captura2.PNG

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