Add products to a shopping cart

Hello, I have a question, how do you create a shopping cart? I have a list with products with every product I have a button that says Add to shopping cart. Also on that page I have a button with a shopping cart. How can I add the product to a list (my shopping cart) that when I go to my shopping cart I can then place a order?
1 answers

Hello Mathijs.

You can find multiple examples of Order / Orderline constructions on the forum. (and on many other sites as well. since it's one of the key examples to learn object oriented programming

This question that i answered some time ago might help you out with the domain model and how to add an article to an ‘order’ which could be your ‘shopping cart’.