Rob, By using a query I can do several things quite easily:
1. Check to see if an item already exists in the cart by comparing ALL properties. 2. Sum sub-total columns. 3. Sum quantity columns. 4. Add custom properties to the items query (ex. size, color, sex, wood, finish, media, etc.). 5. Loop over the items using the CFLoop/Query tag (easier than an index loop). I am sure that arrays / structs can handle all of that as well... There is just something I love about the ColdFusion query object. And again, I am NOT a big eCommerce person, so I am not sure how well this would hold up in the real world. ...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 9:00 AM To: CF-Talk Subject: RE: Basic CFM shopping cart tutorial/Dreaweaver extension Nice work Ben, I spent some time working on a shopping cart system a while back but never got round to completing the project. It's interesting to see you using the query method, any particular reason for using that instead of a standard arrays and structures? Cheers, Rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275335 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

