Page.RunPlan Method

Note

The RunPlan method is included only for backward compatibility with sites created in Commerce Server 2.0, and will be discontinued in future releases. Use the OrderExecute method of the OrderPipeline object instead of this method.

The RunPlan method invokes the OPP to perform preliminary processing on an OrderForm object that contains the contents of the current customer’s order form storage.

Syntax

Page.RunPlan(OrderForm)

Parameters

OrderForm
An OrderForm object that contains the contents of the order form storage for the current customer.

Remarks

The RunPlan method does not result in the purchase of the items referenced in the specified OrderForm’s items collection. Instead, RunPlan runs the OrderForm through all but the last stages of the OPP.

Usually, RunPlan is used to set nonsensitive information such as shipping and billing address data and adjusted price information in the OrderForm, and then to compute the total. If the OPP encounters errors, it stores these errors in the OrderForm’s _Basket_Errors_ collection.

After RunPlan has been run on an OrderForm, and the customer has confirmed the purchase, the site calls RunPurchase on the modified OrderForm to write the OrderForm’s contents to receipt storage.

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.