EZ-CheckOut API
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.
Special Offer!

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.

Qty Part # Description Price Total
CowPie Authentic Western Cow Pies
Size. . . . .
Condition:
$10.00
Sage Authentic Western, High Mountain Sage Brush
Diameter. .
$15.00
Snake Authentic Western, Rattle Snake
Length. . .
Condition.
$35.00
TOTAL:
The HTML code for this form is shown below.

Course Evaluation