We have a basket structure in our database, but we now need to allow our customers to control the contents of the basket. This involves allowing them to:
- View the basket
- Add products to their basket
- Add customizable products to their basket
- Add variations of a product to their basket
- Edit quantities of products in their basket
Let's go through these requirements, and implement them into our framework.
Viewing the basket
This may seem strange, discussing viewing the basket before our customers are even able to add products to the basket. However, the reason for this is that we need functionality in place for checking the basket contents before we can add a product to the basket. If a customer adds a product to their basket twice, the second ...