Re: Remove decimals in prices
Well, I found out the solution, it is more simplier as I thought.
No need to do any PHP modification.
Solution: in SQL set in the xcart_config "number_format" the value from 2,. to 0,. If you need more decimals, you can change 2 to any numbers you want to see as decimals.
This can be used for currencies where not used any decimals.
In this case: 3200.00 will be changed to 3200 if you use the modification I described above. The change is automatic rounding that means if you have a decimal, like 100.56 that will be rounded to 101. So it is not truncate function only...
__________________
Latat
X-cart Gold 4.019, LINUX
|