Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function formatCurrencyc(price, currencyFormat, currencySign, currencyBlank)
- {
- blank = '';
- price = parseFloat(price.toFixed(6));
- //change here
- price = price * .020;
- //
- price = ps_round(price, priceDisplayPrecision);
- if (currencyBlank > 0)
- blank = ' ';
- if (currencyFormat == 1)
- return currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.');
- if (currencyFormat == 2)
- return (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign);
- if (currencyFormat == 3)
- return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ','));
- if (currencyFormat == 4)
- return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);
- return price;
- }
- it should return the correct xxxx,xx price increased by 2% but doesn't...while without the added part it's ok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement