I want to create a shopping cart for myself. It should allows "Continue to Buy" with multiple products before checkout.
What is selected in cart, will be in an array-formated session like this:
$_SESSION[$i]['cart_info'] = array();
I think when I want to allow multiple orders in one cart, $i should incremented that the second and thirs order won't be overriden the first order info?
So for first run $i should be incremented and each time "continue to buy" button is pressed, $i should be incremented to create a new session?
Isn't there any better way to handle a multiple order in one cart? If there is not, then how to increment $i with each button press and first time it should be 0?