KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: Sony George on May 08, 2011, 10:21:21 am

Title: How to populate the newProducts array in al.ProductMgr fill the product options
Post by: Sony George on May 08, 2011, 10:21:21 am
Hello friends,

the products in the "newProducts" array have there products options as null,
how can i fill it, as the default behavior of productMgr ???

regards

Sony
Title: Re: How to populate the newProducts array in al.ProductMgr fill the product options
Post by: DispatchMediaGroup on August 25, 2011, 09:09:21 pm
Any word on this?  I'm having similar issues using the Web Service KK app engine.  In my CMS, I make a web service call to get all products in a category, but I can see in the javadocs that the Product Options will not be set using this call.  Looking further through the javadocs for the WSAppEng, I see no way to get the Product Options for a given product.  Does anyone know how this can be accomplished, even if it were a separate call?
Title: Re: How to populate the newProducts array in al.ProductMgr fill the product options
Post by: DispatchMediaGroup on August 25, 2011, 09:29:04 pm
sorry, I'm using the KKWSEngIf...
Title: Re: How to populate the newProducts array in al.ProductMgr fill the product options
Post by: DispatchMediaGroup on August 25, 2011, 09:54:03 pm
Welp, figured that out...just had to read the documentation more closely:

You need to make the call getProduct(String sessionId, int prodId, int languageId); this will return you the Product object with all associated information.