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:

  1. 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.

  2. 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.

  3. Shopping cart: The shopping cart Web page displays the items that are currently in the shopping cart.

  4. Shipping form: When the customer submits the order, the application displays a form to collect the shipping address and credit card information.

  5. Summary page: The summary page displays all the order information, including the address.

  6. Confirmation ...

Get PHP & MySQL® Web Development All-in-One Desk Reference for Dummies® now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.