dessie1981
Programmer
Hi Everyone,
I'm currently designing an online store and i am having trouble adding multiple items to the shopping cart, i.e. 2 or 3 or whatever amount of the same item to the cart.
The shopping cart is simply an array stored in a session
Anyone got any good ideas on how this can be done or know any functions in php that can help me.
Was thinking of using an associative array and letting the keys be equal to the quantity.
I'm currently designing an online store and i am having trouble adding multiple items to the shopping cart, i.e. 2 or 3 or whatever amount of the same item to the cart.
The shopping cart is simply an array stored in a session
Anyone got any good ideas on how this can be done or know any functions in php that can help me.
Was thinking of using an associative array and letting the keys be equal to the quantity.