The CancelOrderFormHandler (class atg.commerce.order.purchase.CancelOrderFormHandler) cancels the user’s current Order, which deletes the Order from the ShoppingCart. Oracle ATG Web Commerce includes an instance of CancelOrderFormHandler, which is located in Nucleus at /atg/commerce/order/purchase/CancelOrderFormHandler.
The following table describes the important methods in CancelOrderFormHandler.
Method | Description |
|---|
handleCancelOrder
| This handle method calls either the deleteOrder() method or the preserveOrder() method (depending on whether the Order can be deleted). |
deleteOrder
| If the state of the current Order is one of the configured states in the CancelOrderFormHandler.deleteStates property, then the deleteOrder() method deletes the current Order from the user’s ShoppingCart. |
preserveOrder
| If the state of the current Order isn’t one of the configured states in the CancelOrderFormHandler.deleteStates property, then the preserveOrder() method simply sends a ModifyOrder GenericRemove notification message to Fulfillment for any action deemed appropriate. |