O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Taking Orders

At this point our customers can do everything but actually order products. Because that's the whole idea, let's go ahead and give them that opportunity.

Ordering products basically consists of three steps:

  • Adding a product to your cart

  • Reviewing the order

  • Submitting the order

Adding a Product to Your Cart

The best time for us to get a customer to add a product to their cart is when they're actually looking at it. With that in mind, we want to add a button to the product page that will allow them to do this as painlessly as possible. Let's open baz_product.asp and prepare the layout, taking into account the addition of the search form (see Listing 7.16).

Code Listing 7.16. Preparing to add the shopping cart
 0: <%@ LANGUAGE="VBSCRIPT" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required