Welcome to the Treehouse Community
Looking to learn something new?
Ajax shooping cart
Each product would be an object and you would store each product the user has added into an array (in JSON format). So if you have an add product button on each product, the chosen product would be pushed to an array and then asynchronously posted to the server where your PHP code can parse it out and store it in a database.
At the same time, the user's shopping cart is using AJAX to read that JSON file and show the user what he currently has on his shopping cart.