sasmita swain:
hi
how to keep shopping subcategory under category in shopping portlet. in one page.....
Thanks
Sasmita
Hi Sasmita, your query is not really clear. Can you please elaborate?
However I could understand that you currently shopping portlet shows all parent categories on front page; and to see subcategories you need to click any one category; but you want to make all categories with subcategories visible at one go??
- If yes, you may achieve this by hooking shopping portlet jsps (categories.jspf)
Currently there is following code in it:
1List results = ShoppingCategoryServiceUtil.getCategories(scopeGroupId, categoryId, searchContainer.getStart(), searchContainer.getEnd());
here categoryId is parent category id which is 0 for first time. You may change this code to use different method instead:
getCategories(long groupId) , but this method doesn't supports paging params.
Please sign in to flag this as inappropriate.