• Welcome to KonaKart Community Forum. Please login or sign up.
 

Getting null product object from OrderProductIf

Started by HappyHippo, April 22, 2016, 01:43:29 pm

Previous topic - Next topic

HappyHippo

Hi guys, why am i getting null Product object from Order Products?

com.konakart.appif.OrderIf order = orderMgr.getCurrentOrders();
for (int j = 0; j < order.getOrderProducts().length; j++){
com.konakart.appif.OrderProductIf orderProd = order.getOrderProducts()[j];
com.konakart.appif.ProductIf prod =  orderProd.getProduct();
....
....
}

I am getting values for order and orderProd but "prod" is null all the time.

Please help!

HappyHippo

Got it  :)

kk server engine has getProduct(java.lang.String sessionId, int productId, int languageId) method .

Sometimes we should look deeply  :o