KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: HappyHippo on July 31, 2015, 11:20:27 am

Title: prod.getDescription() returns null value
Post by: HappyHippo on July 31, 2015, 11:20:27 am
Hi Guys!,
I wanted to show product description on the home page's New Arrivals and Featured Products so i made a little change in ProdTileTag.java and added a div for product description below price div. But when i call prod.getDescription() it returns null value. Product description is visible on product detail page it means description is available for the product.

Test: I tested with prod.getManufacturerName() and it works fine; i get manufacturer name string. I tested with a custom value too and it's working fine.

What is the thing am i missing? or is it a bug?


Warm Regards.
Title: Re: prod.getDescription() returns null value
Post by: julie on August 04, 2015, 06:59:15 pm
You need to set fillDescription = true in the ProductSearch object.
Title: Re: prod.getDescription() returns null value
Post by: HappyHippo on August 06, 2015, 05:16:57 am
Julie, Thanks a lot for the help. But i'm still getting product description null. This is what i am doing in "NewProductsBody.jsp"-->

com.konakart.al.KKAppEng kkEng = (com.konakart.al.KKAppEng) session.getAttribute("konakartKey");
com.konakart.al.ProductMgr prodMgr = kkEng.getProductMgr();
ProductSearch prodSearch = new ProductSearch();
prodSearch.setFillDescription(true);
prodMgr.setProdSearch(prodSearch);

<kk:carousel prods="<%=prodMgr.getNewProducts()%>" title="<%=title%>" width="180" widthSmall="140" breakpointSmall="440"/>

Where am i doing wrong?

Thanks a lot in advance.