Implementing the Acceptance of Gift Certificates on the Checkout Page

The checkout page offers users a summary of their orders before taking any payment or shipping information. This page is a fairly typical place to accept a gift certifica8te or coupon code, so MyGolfGear followed suit. Figure 11.1 shows what the checkout page looks like.

Figure 11.1. The Checkout.aspx page.

Notice the “process gift certificate” link, which causes the value of the gift certificate to be looked up and deducted from the order's subtotal. The checkout page is made of two parts: an .aspx file and a code behind class. In Chapter 15, “The Checkout Process,” the complete ...

Get Building e-Commerce Sites with the .NET Framework 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.