- Posts: 31
- Thank you received: 2
Multi-Level Categories (category module)
- Mtspinto
-
Topic Author
- Offline
- Junior Member
-
Less
More
5 years 2 months ago - 5 years 2 months ago #132735
by Mtspinto
Multi-Level Categories (category module) was created by Mtspinto
Evening team. I have been able to create categories and sub categories with ease • multi•level.
But my module on the left doesn't show the 3rd level of sub•categories
so instead of
maincat (25)
•••• subcat A (5)
•••• subcat B (5)
•••• subcat C (10)
•••••••••• subcat C0 (3)
•••••••••• subcat C1 (2)
•••••••••• subcat C2 (2)
•••••••••• subcat C3 (3)
•••• subcat D (5)
maincat 2(
•••• subcat A (5).....
it displays as:
maincat 1(25)
•••• subcat A (5)
•••• subcat B (5)
•••• subcat C (10)
•••• subcat D (5)
maincat 2(
•••• subcat A (5).....
I looked at: mod_eshop_category/tmpl/default.php but cannot find where to add another "child category code" so I can see my third level. Please help me add it in
The css has already been changed in "custom.css" so I could see all the sub categories seeing that there isn't a lot
But my module on the left doesn't show the 3rd level of sub•categories
so instead of
maincat (25)
•••• subcat A (5)
•••• subcat B (5)
•••• subcat C (10)
•••••••••• subcat C0 (3)
•••••••••• subcat C1 (2)
•••••••••• subcat C2 (2)
•••••••••• subcat C3 (3)
•••• subcat D (5)
maincat 2(

•••• subcat A (5).....
it displays as:
maincat 1(25)
•••• subcat A (5)
•••• subcat B (5)
•••• subcat C (10)
•••• subcat D (5)
maincat 2(

•••• subcat A (5).....
I looked at: mod_eshop_category/tmpl/default.php but cannot find where to add another "child category code" so I can see my third level. Please help me add it in
The css has already been changed in "custom.css" so I could see all the sub categories seeing that there isn't a lot
Code:
<?php
if ($showChildren && $category•>childCategories)
{
?>
<ul>
<?php
foreach ($category•>childCategories as $childCategory)
{
if ($showNumberProducts)
{
$numberProducts = ' (' . EshopHelper::getNumCategoryProducts($childCategory•>id, true) . ')';
}
else
{
$numberProducts = '';
}
?>
<li>
<?php
$active = $childCategory•>id == $childCategoryId ? 'class="active"' : '';
?>
<a href="<?php echo JRoute::_(EshopRoute::getCategoryRoute($childCategory•>id)); ?>" <?php echo $active; ?>> • <?php echo $childCategory•>category_name . $numberProducts; ?></a>
</li>
<?php
}
?>
</ul>
<?php
}
?>
Last edit: 5 years 2 months ago by Mtspinto. Reason: lists formatted incorrectly
Please Log in or Create an account to join the conversation.
- Mtspinto
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 2
5 years 1 month ago #132998
by Mtspinto
Replied by Mtspinto on topic Multi-Level Categories (category module)
Hi there.
Please help me add the code to show the 3rd level of sub-categories.
Please help me add the code to show the 3rd level of sub-categories.
Please Log in or Create an account to join the conversation.
Moderators: Giang Dinh Truong
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.