• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 31. Adding Shopping Cart Functio... > Creating the Web Store Shopping Cart

Creating the Web Store Shopping Cart

This chapter focuses on the UltraDev Shopping Cart behavior. Although the name may sound deceptive, it is still very much a part of the Dreamweaver MX framework. Not only is it still supported under Dreamweaver MX, but it functions as well under UltraDev 4 as it does with Dreamweaver MX. The next few sections will provide you with a brief description of shopping cart technologies, an overview of the Shopping Cart behavior, and finally, integrating the Shopping Cart behavior with the Web Store application.

What Is a Shopping Cart?

The term shopping cart has been thrown around for a few years now. But what exactly is a shopping cart? We know a shopping cart to be the basket on wheels that you push around at a grocery store. Think about why you use the grocery store shopping cart. You go to your local grocery store, you push around the cart and add items from shelves as you see fit. When your shopping cart is full or you decide that you are finished shopping, you push your shopping cart all the way to the front of the store to the checkout counter. At the checkout counter, you proceed by providing your debit card, cash, or check to the cashier, finish the transaction, and off you go. Sound familiar? The Web is no different; rather than a physical shopping cart, you are provided with a virtual shopping cart, which is little more than a cookie, user session, or temporary array. A virtual table, if you will, then takes items that users request from the database and stores them into a temporary location (cookie, session, array) until you are ready to check out. If you decide that you want another item or more of the same item, you keep adding to the cart. Similar to the grocery store checkout counters, virtual checkouts enable you to enter your credit card information for purchase, but rather than your physically walking away with the items, they are conveniently mailed to your doorstep.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint