SimpleOrderManager extends OrderManager. By default, a SimpleOrderManager object is configured in Nucleus at /atg/commerce/order/OrderManager. Logically, the SimpleOrderManager sits above the OrderManager and provides higher-level functionality. What takes several lines of code to do in the OrderManager takes only a single line of code in the SimpleOrderManager. You can use SimpleOrderManager in place of OrderManager to simplify your code, as the example below shows.

String skuId = getSkuId();
String productId = getProductId();
long quantity = getQuantity();
ShippingGroup shippingGroup = getShippingGroup();

getSimpleOrderManager().addItemToShippingGroup(order, skuId, productId, quantity,

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices