[ic] Total Items and Subtotal

Anirudh anirudh at stg.co.nz
Thu Sep 9 21:28:56 EDT 2004


[if items]

[item-list]
 Cart<br>
 Items: [item-quantity]<br>
 Subtotal : [subtotal]
[/item-list]
[/if]

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

Can anyone tell me what am I doing wrong.



More information about the interchange-users mailing list