On 12/5/00, Nick Betts penned:
>If an item is already in cart I want to check its size, if sizes are same
>(eg both medium and both same product) then just update quantity (ie do not
>add new product to cart). If products are same but sizes different (eg
>small and a medium) then I want to add new entry in cart for this
>product/size.
>Hope this is clear!
Not to get into it too far. When I add a product with a different
color, size, or style, I add all that to an additional row I use just
for that purpose. Sort of like:
<cfset variables.searchrow = product_id & form.style & form.size & form.color>
Then I test against that.
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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