Hi

 

I am trying my hand at a basic shopping cart

 

I have found an example online that uses the following code

 

<cfparam name="session.cart" default="arrayNew()">

<cfset session.cart = arrayAppend( session.cart, structNew() )>

<cfset thisCartItem = arraylen( session.cart )>

<cfset session.cart[thisCartItem].itemID = form.itemID>

<cfset session.cart[thisCartItem].quantity = form.quantity>

<cfset session.cart[thisCartItem].itemName = form.itemName>

 

 

However the code generates the following error message:

 

Object of type class java.lang.String cannot be used as an array 

 

 

If someone would like to advise where the above code is causing the error
message I would be grateful

Regards

Claude Raiola (B.Econ Acc; B.Hot. Mngt)
Samaris Software
Email:  <mailto:i...@trackingcentral.om.au> i...@samaris.net
Website:  <http://www.TrackingCentral.com.au> www.SAMARIS.net
Mobile: 0414 228 948

 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to