Hour 21. Creating a Shopping Cart Mechanism

In the last of the directly hands-on hours, the project is to integrate a shopping cart and checkout procedure into the storefront you created in the previous hour. You will be shown the methods for creating the relevant database tables as well as the scripts for adding and deleting cart items. Once again, the examples used in this hour represent one of an infinite number of possibilities to complete these tasks and are meant as working examples rather than the definitive guide for building an online store.

In this hour, you will learn

  • How to create relational tables for the shopping cart and checkout portion of an online store

  • How to create the scripts to add and remove cart items

  • Some methods for processing transactions, and how to create your checkout sequence

    Part III: Getting Involved with the Code