dw.customer
Class OrderHistory
Object
dw.customer.OrderHistory
The class provides access to past orders of the customer.

Note: this class allows access to sensitive financial and card holder data. Pay special attention to PCI DSS v3. requirements 1, 3, 7, and 9. It also allows access to sensitive personal and private information. Pay attention to appropriate legal and regulatory requirements related to this data.

Properties
orderCount  :  Number  (Read Only)
The number of orders the customer has placed in the store. If the customer is anonymous, this method always returns zero. If an active data record is available for this customer, the orders count will be retrieved from this, otherwise a real-time query will be used to get the count.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getOrderCount() : Number
Returns the number of orders the customer has placed in the store.
Methods inherited from class Object
Method Detail
getOrderCount
getOrderCount() : Number
Returns the number of orders the customer has placed in the store. If the customer is anonymous, this method always returns zero. If an active data record is available for this customer, the orders count will be retrieved from this, otherwise a real-time query will be used to get the count.
Returns:
the number of orders the customer has placed in the store.