Rich,
the tag version of this would be:
<cfif not isdefined("session.cart")>
<cfset session.cart = structNew()>
</cfif>
<cfset tempValue =
ListToArray('#attributes.id#,#attributes.name#,#attributes.price#,#attribute
s.quantity#')>
<cfif not structKeyExists(session.cart, attributes.name)>
<cfset rubbishVar =
structInsert(session.cart,attributes.name,tempvalue)>
<cfelse>
<cfset tempvalue[4] =
int(session.cart[attributes.name][4]+attributes.quantity)>
<cfset rubbishVar =
structUpdate(session.cart,attributes.name,tempvalue)>
</cfif>
(I think thats right <grin>)
HTH
Toby Tremayne
Code Poet and Zen Master of the Heavy Sleep
Show Ads Interactive
359 Plummer St
Port Melbourne
VIC 3207
P +61 3 9245 1247
F +61 3 9646 9814
ICQ UIN 13107913
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists