Hi Barry,

How about both?! Store the shopping cart as an array of structures. Each
array element is a seperate item in your cart. And each item is a
structure that contains info like productid, unit price, quantity etc.

This is the structure we teach in the Advanced ColdFusion course and it's
easy to iterate over for display and totalling amounts. To clear the cart
you just delete the array.

HTH

Tim

> Hi all. 
> 
> Haven't quite found what I want in an open source CF cart and thinking of
> rolling my own - adapting one of my ASP ones.
> 
> ASP had much better array handling than it has for structs (AKA
> "collections"). CFMX seems to work structs really well.
> 
> anyone see a problem with using structs in sessions for a cart? : product ID
> for the key and value for the QTY? 
> 
> thanx
> barry.b

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to