In ShoppingCartServices.loadCartFromOrder(dctx, context) there is a call
to get a list of shipGroups
*
455: List<GenericValue>shipGroups = orh.getOrderItemShipGroupAssocs(item);*
This then loops through setting information on the cart creating new
CartShipInfo objects if one can not be found. My issue is that when I
get to the second item in the loop the shipGroups are gotten for that
item and the
*470: cart.setShipAfterDate(g, sg.getTimestamp("shipAfterDate"));*
index (g) starts over and overwrites the previous value in the cart. I
am not sure how else to set the shipGroups on the cart though so any
advice would be great.
My data for the above scenario is as follows
OrderItem orderItemSeqId="00001" productId="ABC"
OrderItemShipGroupAssoc orderItemSeqId="00001" shipGroupSeqId="00001"
OrderItemShipGroup shipGroupSeqId="00001" facilityId="AAA"
OrderItem orderItemSeqId="00002" productId="ABC"
OrderItemShipGroupAssoc orderItemSeqId="00002" shipGroupSeqId="00002"
OrderItemShipGroup shipGroupSeqId="00002" facilityId="BBB"