I understand what you are trying to do...let me think on it and get back to you...
-----Original Message----- From: Eric Nicholas Sweeney [mailto:[email protected]] Sent: Friday, July 31, 2009 11:19 AM To: cf-newbie Subject: RE: Issues with Comparing Structs in Shopping Cart Array Misha, I already have Uniq identifiers with the database keys... Those products "may have" UPC entries - but if I only used UPC they couldn't list the same product twice. (Which would be handy for trying to see how listing the same product in different ways affected sales... But again, not every product will have a UPC) The structs are currently being built correctly with Uniq Identifiers - I am just having issues comparing newly added products to the cart - to items that "may" already exist in the cart... All I need to do is ask: Does MerchIDX Exist in my Cart Array? If True, Compare Structs For Choices: Does Struct A = Struct B? If False, This is a New Cart Item If True, Compare Options For options: Does Struct C = Struct D? If False, This is a New Cart Item If True, Return Cart Position X (This adds more quantity rather than new item) Does that make sense? My problem, is that I do not really know how to compare the structs... it is sort of at the fringes of my comprehension and skill level. :( - Nick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4680 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
