on ‎2018 Nov 27 9:24 AM
Request clarification before answering.
HI ,
Use below OOTB service and you will get the all the super categories ordered by level wise. and you can get what level category you want.
final Collection<List<CategoryModel>> categoryPaths = this.categoryService.getPathsForCategory(parentCategoryForProduct);
if (CollectionUtils.isNotEmpty(categoryPaths)) {
final List<CategoryModel> pathForParentCategory = categoryPaths.iterator().next();
if (null != pathForParentCategory && pathForParentCategory.size() > 3) {
if (this.getCategoryLevel() == 1 && pathForParentCategory.get(1).getIsIndexable() != null
If my answer really help full to me .please accept my answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.