Product price decimal places
I have a project that requires pricing on producs to go to 4 decimal places. Example: $ .2911. I have changed the db to allow 4 decimal places for xcart_prices. I also changed the precision rounding to a 4 (I hard coded it for now) in the func_format_number function. Still my wholesale prices list still shows 2 decimal places. Large volume orders, 10000 items is causing the pricing to sway over 5% with this rounding issue. Any help would be appreciated.
return number_format(round((double)$price + 0.00000000001, 4), $precision, $decimal_delim, $thousand_delim);
__________________
4.4.3 Gold
|