Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

How to make data listing block for categories show subcategories?

Started by dharding, August 22, 2020, 09:26:50 AM

Previous topic - Next topic

dharding

I've enabled a data listing block for categories to appear in the left column, but the problem is that it only shows the root (top level) categories, but I need it to show all subcategories as well.

Basically, my number of subcategories has grown to the point that only having them part of the dropdown menu can be cumbersome depending on the device/resolution you are using, so I want a persistent list of all categories and subcategories along the left side.

Basically the equivalent of the left column of the site map page.

Thanks.

abolabo

Quote from: dharding on August 22, 2020, 09:26:50 AM
I've enabled a data listing block for categories to appear in the left column, but the problem is that it only shows the root (top level) categories, but I need it to show all subcategories as well.

Basically, my number of subcategories has grown to the point that only having them part of the dropdown menu can be cumbersome depending on the device/resolution you are using, so I want a persistent list of all categories and subcategories along the left side.

Basically the equivalent of the left column of the site map page.

Thanks.

Hi.

I don't think you need listing block in this case. Listing block usually needs for custom lists.
If you want to show full category tree just use generic "category" block. Just add it via layout manager.
Also probably you should to make some change of public_html/storefront/view/default/template/blocks/category.tpl template.
You can copy some of html from category_top.tpl too.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

dharding

I tried using the standard category block in the left column, but it too only displays the root level categories, not the subcategories as well.

Forum Rules Code of conduct
AbanteCart.com 2010 -