Welcome Guest, Not a member yet? Register   Sign In
changing options for cart items
#1

[eluser]zcorbitt[/eluser]
Is there a way to change the options for a cart while maintaining the items position in the cart array? Because the item key is made of id and the options for the item I don't see how I can change the options but allow the item to maintain it's position in the cart.

for example:

item 1: name=>shirt1, options(color=>red, size=>small)
item 2: name=>shirt2, options(color=>blue, size=>large)

but if I want to change item 1 to a medium the only way i see to do that is drop item 1 and add it back to the cart; which puts it at the end of the array. Is there a way to maintain the order of items? All that I can come up with is dropping all and adding them back in the order they were displayed and submitted from a cart view.

thanks


Messages In This Thread
changing options for cart items - by El Forum - 10-04-2009, 08:48 AM
changing options for cart items - by El Forum - 10-05-2009, 04:55 PM
changing options for cart items - by El Forum - 10-06-2009, 06:50 AM
changing options for cart items - by El Forum - 10-06-2009, 10:02 AM
changing options for cart items - by El Forum - 10-06-2009, 10:19 AM
changing options for cart items - by El Forum - 10-06-2009, 11:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB