ΠΙΣΩ ΣΤΟ BLOG
Bugs & Fixes

How to fix too many decimals on products prices and cart in Prestashop

ArtiveLabAuthor
| 6 Αυγούστου 2022 2 views
How to fix too many decimals on products prices and cart in Prestashop
Sometimes and on some currencies there is an issue with rounding up the prices correctly. When you want your price to be 90,25 it ends up being 90,25000001 and there isn't an option to change that from the admin area. The easiest way to fix the decimals issue is:
  1. You have to open up your database either via your control panel (plesk, cpanel, etc) or with a desktop app.
  2. Then find the table named "ps_currency".
  3. On your active currency where you see the issue appear you can change the percision to a 2. That way it will round up the price to two decimal points and not 9 for example.
 

ArtiveLab

Συντάκτης

Η ομάδα ArtiveLab δημιουργεί περιεχόμενο σχετικά με web development, design και τεχνολογία.

Σύνδεση