wirejunkie
resources

JavaScript for E-Commerce

Back | Contents | Next

The Ordering Process

At this point we have a navigable online shop, with one glaring omission - there is no way for a customer to actually select items to order. To this end, we are going to add two things to FOMS:

  1. Checkboxes next to each item so that the customer can select them.
  2. A frame at the bottom of the screen to display a list of currently selected items, and a button the customer can click to finalize the order.

We need to modify the item-cd-blues.html, item-cd-techno.html, ..., item-record-classical.html, files to include checkboxes and JavaScript code to add items to the myOrderList object created in the index.html file.

We need to modify the index.html file to include another frame for the list of selected items, and we need to add JavaScript code to generate this list.

A minor modification needs to be made to the item-initial.html file so that the JavaScript code knows that no items are currently being listed when this file is active.


Back | Contents | Next
If you find this tutorial useful and want to show your apprectiation, a small donation is most welcome.
Copyright © 1997-2000 wirejunkie <tech@wirejunkie.com>