When you have the Decimal Places Currency set to "0", the code doesn't work, you can not use the % function because the result is wrong.
My fix have been the next:
-------------------------------------------------------------
FIND the code:
. intval($currencies->currencies[DEFAULT_CURRENCY]["decimal_places"]) . "
REPLACE with:
2
---------------------------------------------------------------
Now, I have my Decimal Places Currency set to "0" and also I can set my prices with 2 decimals if I want. Of course, no display the decimal because my set is "0" but round the result and the decimal are storaged in the database if I want show them in the fuure.
Regards,
SunDust
Note: No code attached in this contribution
More...





LinkBack URL
About LinkBacks









Bookmarks