|
|
|
|
|
|
Sample 3 - A More Complex Form
|
|
This form is a little more complicated. The order form is for three different products, each with different attributes. The simple javascript code is designed to compute the extended price for each product. Note, that the extended price is only for the benefit of the shopper, since this information is not passed to the CheckOut API. The API will compute the extended price from the quantity and unit price information posted. Also, if a quantity of zero is selected the API will remove the item from the final step of the order. Finally, remember that this is an example only, since it would actually be easier to build this user interface with EZ-Catalog.
|
|
Note: If you click the "Order" button, this form will actually use the Checkout API and process a real order. We do this so that you can see exactly what will happen. However, we will not process any payment information.
|
|
|
|
Order now while supplies last! Get authentic Western memorabilia for your home or back yard. Be the first in your neighborhood to have the flavor, sounds, and aromas of the Old West.
|
|
|
|
The HTML code for this form is shown below.
|
|
|
|
|
|
|
|
|
|
|
|
|