Well you are obviously looping over your entire cart and adjusting the quantity of each item when the buttons are clicked. The buttons are also very generically named which makes me believe that they aren't tied to individual items in anyway.
-----Original Message----- From: marc collignon [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 10:54 AM To: CF-Talk Subject: some issue while increment/decrement value of product in a shopping cart Hi, I'm having a strange issue and I need some help resolving it I have design a complete CFM shopping cart with auto generate discount coupon and lots of other features however a small thing still generate a major issue using + / - sign the customer can increase or decrease the ordered quantity of a particular item it is working fine when only 1 item is on the shopping cart if several item are in it increasing or decreasing the value of 1 of them will effect the all product quantity in the cart where am I wrong <cfelseif Isdefined ('FORM.plus_button.y')> <cfloop from="1" to="#ArrayLen(SESSION.cart)#" index="i"> <cfset SESSION.cart[i].quantite = #IncrementValue("#SESSION.cart[i].quantite#")# /> </cfloop> <cflocation url="contenu_commande.cfm"> <cfelseif Isdefined ('FORM.moins_button.y')> <cfloop from="1" to="#ArrayLen(SESSION.cart)#" index="i"> <cfset SESSION.cart[i].quantite = #decrementValue("#SESSION.cart[i].quantite#")# /> <cfif SESSION.cart[i].quantite LTE 1 > <cfset SESSION.cart[i].quantite = 1 /> </cfif> </cfloop> <cflocation url="contenu_commande.cfm"> Thank you for your help Marc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302719 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

