How to not display the catalog items under the categories

Jan Raphael Caa
Mega Guru

Hi All,

We've recently migrated from Istanbul to Kingston. We've created a tree view nav bar by parenting the categories. Below is a screenshot.

find_real_file.png

The need something displays 0 items because it is only a placeholder for the subcategories. But when I click on it, it displays all the records of the subcategories.

Is there a way to prevent the primary category not to display its subcategories?

1 ACCEPTED SOLUTION

Erik Stolberg
Tera Guru

You would need to clone and modify the "SC Categories" widget. There aren't any Options on the widget to hide/show subcategories.

Within the widget HTML, you would need to change some of the logic within the scripting for the ng-template "category-template.html" such as the following piece:

categories.subcategories.length > 0

View solution in original post

2 REPLIES 2

Erik Stolberg
Tera Guru

You would need to clone and modify the "SC Categories" widget. There aren't any Options on the widget to hide/show subcategories.

Within the widget HTML, you would need to change some of the logic within the scripting for the ng-template "category-template.html" such as the following piece:

categories.subcategories.length > 0

Please remember to mark as helpful or correct answer if I've answered your question.