I got it working!
I checked CheckoutDeliveryAction and realised that I have to create the shipping quotes before inserting one into the check out order:
// Get shipping quotes from the engine
kkAppEng.getOrderMgr().createShippingQuotes();
// Get shipping quotes for the order and choose the first one in the list for this order
ShippingQuoteIf[] sQuotes = kkAppEng.getOrderMgr().getShippingQuotes();
if (sQuotes != null && sQuotes.length > 0)
{
checkoutOrder.setShippingQuote(sQuotes[0]);
System.out.println("shipping = " + sQuotes[0]);
}
// Populate the checkout order with order totals
kkAppEng.getOrderMgr().populateCheckoutOrderWithOrderTotals();
Many thanks!
Konakart is kewl
I checked CheckoutDeliveryAction and realised that I have to create the shipping quotes before inserting one into the check out order:
// Get shipping quotes from the engine
kkAppEng.getOrderMgr().createShippingQuotes();
// Get shipping quotes for the order and choose the first one in the list for this order
ShippingQuoteIf[] sQuotes = kkAppEng.getOrderMgr().getShippingQuotes();
if (sQuotes != null && sQuotes.length > 0)
{
checkoutOrder.setShippingQuote(sQuotes[0]);
System.out.println("shipping = " + sQuotes[0]);
}
// Populate the checkout order with order totals
kkAppEng.getOrderMgr().populateCheckoutOrderWithOrderTotals();
Many thanks!
Konakart is kewl
