[ic] Total Items and Subtotal

Jon Jensen jon at endpoint.com
Thu Sep 9 21:48:35 EDT 2004

On Fri, 10 Sep 2004, Anirudh wrote:

> I have created this small shop cart component where I want to display the
> total quantities of ordered made as well as subtotal of all the ones in the
> cart. [subtotal] is displaying the total amount but [item-quantity] is only
> displaying item quantity of first item in the cart.
> For eg. Someone added 2 quantites of Product A of $1 =$2
>  and 3 quantities of product B of $2= $6
> What I want to display is
> Cart
> Items : 5
> Subtotal : $8

I think what you want is:



Jon Jensen
End Point Corporation
Software development with Interchange, Perl, PostgreSQL, Apache, Linux, ...

More information about the interchange-users mailing list