menu

SiteGenesis / Server-side JS / Module: models/OrderModel

Module for ordering functionality.

Source:

module:models/OrderModel

The order class

Source:

Classes

OrderModel

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.

Source:
Returns:
Type
module:models/OrderModel~OrderModel

(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
Source: