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

prod.getDescription() returns null value

Started by HappyHippo, July 31, 2015, 11:20:27 am

Previous topic - Next topic

HappyHippo

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.

julie

You need to set fillDescription = true in the ProductSearch object.

HappyHippo

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.