KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: bharatkasodariya on September 24, 2013, 04:00:08 pm

Title: get "Custom Relationship 1" products without (login)session id?
Post by: bharatkasodariya on September 24, 2013, 04:00:08 pm
kkEng.getEng().getRelatedProducts(kkEng.getSessionId(), null,
                           kkEng.getProductMgr().getSelectedProduct().getId(),
                           com.konakart.bl.ProductMgr.CUSTOM_RELATIONSHIP_1,
                           kkEng.getLangId());
is it possible to get data without session id.
Title: Re: get "Custom Relationship 1" products without (login)session id?
Post by: bharatkasodariya on September 25, 2013, 10:22:00 am
is it possible?
Title: Re: get "Custom Relationship 1" products without (login)session id?
Post by: maggie on September 27, 2013, 06:05:51 am
I think so. Why don't you just try it ?
Title: Re: get "Custom Relationship 1" products without (login)session id?
Post by: bharatkasodariya on September 27, 2013, 11:13:58 am
I tried. It doesn't work. Its throwing invalid session error as there is not session id in engine.
Is there any option.
Title: Re: get "Custom Relationship 1" products without (login)session id?
Post by: maggie on September 27, 2013, 03:33:30 pm
Are you certain you're setting it to null?
Title: Re: get "Custom Relationship 1" products without (login)session id?
Post by: bharatkasodariya on September 28, 2013, 06:51:42 am
Yes, When I open list page first time its returning kkEng.getSessionId() is null. And throws exception of session for the related product call.
If I open product detail page(directly) before it. And try to open list page then it works. It seems it creates session in product detail page.