Module for ordering functionality.
module:models/OrderModel
The order class
Classes
Methods
(inner) OrderModel/get(parameter) → {module:models/OrderModel~OrderModel}
Gets a new instance for a given order or order number.
Parameters:
Name | Type | Description |
---|---|---|
parameter |
dw.order.Order | String |
The order object to enhance/wrap or the order ID of the order object. |
Returns:
(inner) placeOrder(order)
Place an order using OrderMgr. If order is placed successfully, its status will be set as confirmed, and export status set to ready.
Parameters:
Name | Type | Description |
---|---|---|
order |
dw.order.Order |