OrderForm.ClearItems

Ee825683.c++_on(en-US,CS.10).gifEe825683.vb_off(en-US,CS.10).gif

Use this method to clear the items collection of the OrderForm object.

Definition

Sub ClearItems()

Parameters

None.

Return Values

None.

Error Values

This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

A site uses the ClearItems method to respond to a user choosing to cancel a purchase. This method affects only the information in the items collection. Other OrderForm object information, such as _oadjust_subtotal and _total_total, is modified only if you run the Order Processing Pipeline (OPP) on this OrderForm object.

To empty the entire contents of the OrderForm object, call the ClearOrderForm method.

See Also

OrderForm Object

OrderForm.AddItem

OrderForm.ClearOrderForm


All rights reserved.