cart.setItemShipGroupQty(cartItem, qty, groupIdx);
}
protected void addAdjustments(ShoppingCart cart, OrderAdjustment adjustment) {
// handle shipping
Shipping shipping = adjustment.getShipping();
BigDecimal shipAmount = new BigDecimal(shipping.getShippingCost());
GenericValue shipAdj = delegator.makeValue("OrderAdjustment", FastMap.newInstance());
shipAdj.set("orderAdjustmentTypeId", "SHIPPING_CHARGES");
shipAdj.set("amount", shipAmount);
cart.addAdjustment(shipAdj);