View Single Post
  #2  
Old 10-13-2006, 04:57 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default Re: Weight to three decimal places

In the Uk we use metric for weights etc, and this is one of the first things I change in all the X-cart Pro versions I've tested.

You will have to change several tpl files in addition to the 12/3 decimal in the database.

I posted some info on the following link in June about this.

http://forum.x-cart.com/showpost.php?p=127842&postcount=75

Note Also that
Code:
{ $product.weight|formatprice|default:$zero }
would need to be changed to
Code:
{ $product.weight|formatnumeric|default:$zero }
to produce 3 decimal places as in 2.756g.

I will search my system for the list of files and changes required and post back.
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote