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

Get Active Server Pages 3.0 from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.