O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

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

Storing Cart Information

One of the first things to consider when building a shopping cart is how to store the shopping-cart information. Most users expect to be able to add items to a cart, go somewhere else (perhaps back to your storefront page or to another site for comparison shopping), and then return later to check out. This means you need to maintain the contents of each user’s cart somewhere on your site.

No matter how you decide to store the information, you usually have at least two pieces of information to maintain:

  • Items Added to the Cart. In most situations, each item will have its own unique identifier (in the sample database, this is the MerchID column in the Merchandise table), so remembering which items the user has added to ...

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