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

Read all categories including invisible

Started by bharatkasodariya, May 10, 2013, 07:59:02 am

Previous topic - Next topic

bharatkasodariya

I am trying to read all categories. For that I have written below code in jsp


//get kkeng from session.
com.konakart.al.CategoryMgr catMgr = kkEng.getCategoryMgr();
CategoryIf[] allCat=catMgr.getCats();
It returns only visible categories. Is there any method which can return invisible categories.

Thanks,
Bharat

bharatkasodariya


trevor

When you set a category to be invisible, it isn't returned in the category tree of the storefront engine. If you know the id you can get it using the getCategory() API call.

bharatkasodariya

I have to read all categories on the front page including invisible. Can add some method in manager which can return all categories including invisible categories. I think that can be helpful in future.

trevor

The reason for setting them to be invisible is so that they aren't present in the category tree. If you want them to be present then set them to visible.

bharatkasodariya

I needed all categories including invisible for some page. If I make it visible then it will come in tree which I don't want. That's why I suggested to put some other method  which can return all categories. Will get it by executing query.