fix bug in price.toFixed in tools.js
This commit is contained in:
parent
68a4ded2b2
commit
6e7d018592
4346
cache/__class_index.php
vendored
4346
cache/__class_index.php
vendored
File diff suppressed because it is too large
Load Diff
@ -60,7 +60,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank)
|
||||
{
|
||||
// if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class)
|
||||
var blank = '';
|
||||
price = parseFloat(price.toFixed(10));
|
||||
price = parseFloat((price*1).toFixed(10));
|
||||
price = ps_round(price, priceDisplayPrecision);
|
||||
if (currencyBlank > 0)
|
||||
blank = ' ';
|
||||
|
@ -61,7 +61,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank, ttc)
|
||||
taxeTag = (typeof ttc === 'boolean' && ttc == true) ? ' TTC' : ' HT';
|
||||
|
||||
var blank = '';
|
||||
price = parseFloat(price.toFixed(10));
|
||||
price = parseFloat((price*1).toFixed(10));
|
||||
price = ps_round(price, priceDisplayPrecision);
|
||||
if (currencyBlank > 0)
|
||||
blank = ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user