![]() ![]() PipelineResult pr = om.processOrder(order) checkout the Order and iterate through the result object displaying errors Compute the prices using pricing tools Om.addRemainingOrderAmountToPaymentGroup(order, pg.getId()) PaymentGroup pg = (PaymentGroup) order.getPaymentGroups().get(0) add the entire order amount to the PaymentGroup ShippingGroup sg = (ShippingGroup) order.getShippingGroups().get(0) Ĭm.addItemQuantityToShippingGroup(order, item1.getId(), sg.getId(), quantity1) Ĭm.addRemainingItemQuantityToShippingGroup(order, item2.getId(), sg.getId()) get the ShippingGroup and add the items to it item with catalogRefId already existed in the Order, the quantity is incremented rather add the items to the Order, set the return value back to the object because if an The Order has a ShippingGroup and PaymentGroupĬommerceItem item1 = cm.createCommerceItem(catalogRefId1, productId1, quantity1) ĬommerceItem item2 = cm.createCommerceItem(catalogRefId2, productId2, quantity2) It, assigning those items to a ShippingGroup and PaymentGroup, and checking the Order out.ĬommerceItemManager cm = getCommerceItemManager() Below is an example of creating an Order, adding CommerceItems to Objects to an Order, adding objects to other objects, removing objects from The various types of methods in this class are used for creating objects, adding #ATG ORDER MANAGER LOAD ORDER PLUS#ThisĬlass plus CommerceItemManager, ShippingGroupManager, and PaymentGroupManager holdĪll the business logic for manipulating an Order. ![]() This class is the business layer object for managing and manipulating Orders. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |