[ic] item-quantity on flypage

Philip Alves interchange-users@icdevgroup.org
Mon Nov 4 11:52:00 2002


From: "Mike Heins" <mike@perusion.com>

> Quoting Philip Alves (philip.alves@sympatico.ca):
> > Howdy!
> >
> > On flypage, I want to show that an item has been placed in the basket,
and
> > how many of that item.  I've got this:
> >
> > [item-list][if ordered [item-code]]
> >           <tr><td colspan="2">
> >               [item-quantity] of this item are in your cart.
> >           </td></tr>
> > [/if][/item-list]
> >
> > As you can probably tell, this returns  "x of this item are in your
cart."
> > for every item in the basket.  How do I get flypage to show "THIS MANY
of
> > this item are in your cart"?
> >
>
> You should look at the FAQ. I think it has a question in this area.
> Besides it might spur you to do some further investigation and find:
>
>     [nitems qualifier=code compare="^[item-code]$"]
>
> Or it is very easy to do in embedded Perl, and there are examples in the
> FAQ.
>
> --
> Mike Heins


Mike,

Thanks for the kick in the bum!  I had been looking in the ITL Doc, and
completely missed nitems.  Today could only be a Monday.

Humbly,

Phil