[ic] Shipping Weight problem....Bug!!!!

Nora Heuer - Baytides Management Inc. interchange-users@icdevgroup.org
Tue Oct 22 18:42:00 2002


On 21 Oct 2002 at 17:01, Venu wrote:

> Hi List,
> 
> When ever i am entering the weight in the database with decimal values
> (eg.1.5 or 0.5 etc..) then in the cart it is not displaying the weight
> correctly (though calculating the weight correctly in the
> checkout.html page).  For example in my case. I have weights of
> products with 0.5kg and 0.2kg. once I select a product and gointo the
> shopping cart and refresh the page couple of times or click on
> recalculate button couple of times then shipping weight is not being
> displayed correctly but different value.
> 
> I feel this is a bug in interchange. I experience this with the
> default stores also. Pl. can any one throw some light on this to
> overcome this problem.!!!!!!!
> 
> Thanx
> Venu Madhav
> 

I had a similar problem and simply resulted in changing the following 
in /components/cart


delete:
****************************
[if-item-field weight]
	[seti weight][summary amount=`[item-quantity] * [item-field 
weight]`][/seti]
	[/if-item-field]
***************************
and replace:
****************************
[summary format="%s" total=1]
******************************
with:
******************************
[calc][item-list][if-item-field weight] + ([item-quantity] * [item-
field weight])[/if-item-field][/item-list][/calc]
******************************
Nora