Previous in Contents Next in Contents

The OrderForm

The OPP requires that data passed from the site to the OPP, and from the OPP to the site, be passed in an OrderForm object. This requirement applies both to components included in the default OPP and to components designed to extend its functionality.

The OrderForm consists of a structured set of Dictionary and SimpleList objects that makes it possible to present a detailed summary of all or part of one or more shopping sessions to the customer or to the OPP. This summary includes customer data, such as name, address, and credit-card information, as well as product information related to the purchase.

As the preceding diagram illustrates, the OrderForm is a Dictionary. The first element in this Dictionary is a reference to a SimpleList of the items that make up the order, and each of these items is itself another Dictionary. The SimpleList is referred to as the items list.

The elements that make up both the order Dictionary and the Dictionary objects in the items SimpleList are called name/value pairs. Each component that you include in the OPP for your site is designed to operate on one or more of these name/value pairs. Typical operations include the following:

The underscore (_) character that precedes many of the name/value pairs in the OrderForm is known as a prefix. Generally, the inclusion of a prefix indicates the name/value pairs in an OrderForm that are not persistently stored.

Note  The contents of an OrderForm can vary, depending on how the pipeline for a site is configured. The figure listed previously is intended only to illustrate a typical OrderForm.

Related Topic


© 1997-2000 Microsoft Corporation. All rights reserved.