O'Reilly logo

PHP 5 e-commerce Development by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required