Class OrderPrepareCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderPrepareCmd, Protectable,,,,,,
    Direct Known Subclasses:

    public class OrderPrepareCmdImpl
    extends OrderPrepareBaseImpl
    implements OrderPrepareCmd
    This is the default implementation of the controller command OrderPrepareCmd. It prepares the specified orders for display (by the OrderDisplayCmd) or processing (by the OrderProcessCmd). If no order numbers are specified, then the command prepares all the current pending orders of the current customer that belong to the specified store.

    Input parameters:

    Name Description
    URL optional, the URL to be called when the command completes successfully.
    orderId optional, the order Id specified, this parameter can be repeated.
    outOrderName Specifies the names of name-value pairs to be added to the redirection URL.
    retainOrderCurrency The currency to be retained.

    Output parameters:

    Name Description
    warningErrorMessageKey return this parameter if shopping cart has changed, _WARNING_ORDER_PREPARE_AN_ITEM_IN_PRE_SHIPPING_MODE
    warningErrorMessage return this parameter if shopping cart has changed, the ECMessage of key WARNING_ORDER_PREPARE_AN_ITEM_IN_PRE_SHIPPING_MODE


    • If the value of the commit parameter is 1, a new database transaction is started for every order to be prepared. Otherwise, all orders are prepared in one transaction (the default behavior).
    • Check whether the order is in the correct status. The status of the specified orders must be P, I, E, W, or N.
    • Call ValidateShippingAdjustmentCmd to validate that the order hasn't changed since a shipping adjustment was added.
    • Call the PrepareOrderCmd task command to do pricing, calculation and inventory actions.

    Task commands called:

    AccessBeans used:

    Possible callers:

    See Also:
    Serialized Form