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:302712
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4