5.3. Building the Shopping Cart Web Pages
The shopping cart provides the customer with product information, displayed from an online catalog, similar to the online catalog discussed in Chapter 4 of this minibook. The customer selects items from the catalog and puts them into the shopping cart. When the customer is satisfied with the contents of the shopping cart and submits the order, the application builds the order, collecting the shipping information and storing the chosen items. The shopping cart also collects credit card information and submits it for approval and processing.
5.3.1. Designing the shopping cart Web pages
The shopping cart application displays six Web pages, in the following order:
Product Categories: The catalog displays the categories from the catalog database. This category page is similar to the category page in Chapter 4 of this minibook, with one small addition.
Product information: The product page displays information about the products available for a specified category. This page is similar to the product page in Chapter 4 of this minibook, but it has some added elements that are necessary for online purchasing.
Shopping cart: The shopping cart Web page displays the items that are currently in the shopping cart.
Shipping form: When the customer submits the order, the application displays a form to collect the shipping address and credit card information.
Summary page: The summary page displays all the order information, including the address.