Basket contents

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 ...

Get PHP 5 e-commerce Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.