Closed Reedyn closed 10 years ago
I'm thinking what the best approach for the Shopping Cart would be.
Having it on the front-end only seems like the obvious choice to me.
My suggestion:
$_SESSION['cart'] = array ( productId => amount (integer), );
Example
$_SESSION['cart'] = array ( 534758435 => int 2, 534654635 => int 1, );
I'm thinking what the best approach for the Shopping Cart would be.
Having it on the front-end only seems like the obvious choice to me.
My suggestion: