[ic] cart status

Doug Whiteley doug at scotweb.co.uk
Mon Dec 1 09:56:00 UTC 2008

On 1/12/08 03:21, Darnell Hudson wrote:
> Davor Ocelic wrote:
>> On Sun, 30 Nov 2008 17:55:33 -0800
>> Darnell Hudson<hudsondarnell43 at verizon.net>  wrote:
>>> What tag do you use for cart status so you want to show whether a
>>> cart is empty or has
>>> product, like on a side of a site
>> 1) [nitems] displays number of items in the cart.
>> 2) If you're using Standard demo based store, you have cart_tiny
>> component in there which summarizes cart contents
>> (file is /templates/components/cart_tiny)
>> 3) You can use a special if "items" clause like this:
>> [if items]
>>   You have [nitems] items in your cart.
>> [else]
>>   No.
>> [/else]
>> [/if]
>> -doc
> Thanks that works, but is there a way that you, can also show what item is the cart.

[if items]
   You have [nitems] items in your cart:
     [item-quantity] x [item-field description] <br />
   No.

Doug Whiteley, Web and Database Developer
Scotweb Marketing Ltd
doug at scotweb.co.uk http://www.scotweb.co.uk

More information about the interchange-users mailing list