How to Develop an Online Shopping Cart (Part Three)
Lawrence Cramer
www.cartweaver.com
Table of Contents
This is part three of a three-part series on shopping carts. In my previous two articles, I discussed the theory and principles behind developing an e-commerce application. In this article, I will deconstruct the example application that I referred to in the previous two articles to show how I put some of the principles into practice. If you haven't already been through part one and part two of this article series, do so before completing part three. You can see a hosted version of the shopping cart covered in this part of the article series.
I built the example application in Macromedia ColdFusion using Macromedia Dreamweaver MX 2004, but the principles I cover apply to virtually all server platforms. I'm not going to spend a great deal of time on the specifics of every line of code in the shopping cart application, but I will review the major code blocks on each of the application pages. If you are new to ColdFusion and you don't understand parts of the code in the sample files, a good place to go for help is the built-in ColdFusion reference in Dreamweaver (Window > Reference). Some good places to start learning ColdFusion are the ColdFusion Developer Center, or one of the many ColdFusion books on the market. Again, this article isn't meant to be a ColdFusion how-to article as much as it is meant to show you the process of developing an e-commerce application.
Note: The example application in the download files is not meant to be a production-ready shopping cart and does not include the SSL security described in parts one and two of this article series.
Requirements
Dreamweaver MX 2004
ColdFusion MX (Optional for running the example application)
Tutorials and sample files:
dev_cart.zip (55K
ZIP)