Quote history is obtained by linking orders that have a matching activeQuoteOrderId. The OrderLookup servlet accepts the quoteOrderHistory input parameter. This parameter indicates whether a quote history should be obtained for an order. Both the flag and the order ID are needed to return quote history. Quote history is obtained when the parameter is set to true.
If the quoteOrderHistory parameter is set to true and a valid order ID is supplied to the orderId parameter the getOrderQueryForQuoteOrderHistory search query is called. This search query looks though the order repository and matches orders that have a corresponding activeQuoteOrderId.
For detailed information on the OrderLookup servlet, refer to the Implementing Order Retrieval and Appendix A: Core Commerce Servlet Beans sections of the Guide to Setting Up a Store.
To obtain the history, you should call the component /atg/commerce/order/, which contains:
QuoteOrderHistoryLookup
$class=atg.commerce.order.OrderLookup orderManager=OrderManager orderLookupService=OrderLookupService costCenterManager=CostCenterManager siteGroupManager=/atg/multisite/SiteGroupManager openStates=\ pending_quote,\ quoted closedStates=\ rejected profilePath=/atg/userprofiling/Profile enableSecurity=true SearchByOrderId=true
The OrderLookup.getQuoteOrderHistory method uses the OrderLookupService to find the quote history of an order. The OrderLookupService contains the getQuoteOrderHistory and getOrderCountForQuoteOrderHistory methods. The getQuoteOrderHistory method of the OrderLookup class uses the OrderLookupService to find an order’s quote history. It requires the order ID of the order for which the quote history is associated.
The OrderLookupService contains the following methods:
Method | Description |
|---|---|
| This method returns orders that are related to the |
| This method returns a count of the number of orders that met the given criteria. |
These methods call OrderQueries where the getOrdersForQuoteOrderHistoryInState and getOrdersForQuote methods facilitate the search.
OrderQueries or OrderLookup returns a collection of orders that a page coder can use to display the information. Within the JSP, a page coder might loop over them using a ForEach droplet and pull out information on pricing adjustments and information on the quote itself through the quoteInfo which is associated with that order.

