Creating Shopping Carts

Not all shopping-cart experiences are alike, but most are reasonably similar. After you have built one cart application, others will come naturally and quickly. This section presents one way of implementing a shopping cart, which you can adapt for your own applications. First I’ll discuss several approaches for remembering shopping-cart contents. Then you’ll assemble a simple cart, using just a few ColdFusion templates.

This section discusses a number of concepts introduced in Chapter 20, “Working with Sessions,” including the definition of a Web-based session, as well as ColdFusion’s special CLIENT and SESSION scopes. I suggest you read or at least skim Chapter 20 before you continue here.

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.