Xcart the number of decimal places by default is 2 bits, sometimes need to change the number of bits as needed; At first, the number of bits in the data type in the database can be changed, and the result is that Xcart is limited in the program, only 2 bits. Then only by changing the way the program to change, because of time jincu, only make simple changes (it is possible to add a variable in general settings to dynamically control the number of decimal places). Here are the steps to modify:
1. If the weight field in the product changes to a 3-bit decimal point, first change the weight field of the xcart_products and xcart_variants two tables in the database to 3 decimal places.
2. Remove the define (' Number_vars ', "Shipping_freight,price,list_price,weight") from the file \admin\product_modify.php weight
3. Change the file \modules\product_options\product_variants.php
4. Change the corresponding TPL file, remove the weight pricefomat, file \skin\common_files\main\product_details.tpl and file \skin\common_files\modules\ Product_options\product_variants.tpl
Xcart Number of decimal places