Simple shopping carts are just arrays of products that are supported through sessions and cookies. You can do whatever you want. Just make sure that users cannot do whatever they want, such as changing prices by URL. But above all, making it very, very, very easy for the user to check.
, , - , . , , , , , , , , , .
, , , cookie/ , .
, , , , , LineItem, , , .
, , , , , , . , , x, .