Show subcategories on category page

4 years 2 months ago
Posts: 72
More
Topic Author
Show subcategories on category page #2010
Hello,
i am doing some changes in the layout of the category view and i want to show the subcategories under of each category.
i make the changes in the file templates/yoo_eat/html/com_virtuemart/themes/grids/categories/centered.php
but i cannot make it work with the code that i am testing it:
foreach ($category->subcategories_tree as $subcategory) {
            $subcategoryURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $subcategory->virtuemart_category_id);
            
        $html.= '<a href="' . $subcategoryURL . '" title="' . $subcategory->category_name . '">' . $subcategory->category_name . '</a>';
        }

Also i would like to get the image of each subcategory.
Any syggestions please?

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum

Latest News from JoomlaPro.com

VMuikit 5 is finally out!

Our next version of our popular VMuikit package is out. This time we have some quite nice new features.

Electroneum Joomla/VirtueMart plugins

JoomlaPro.com are not only web & Joomla enthusiast, we cannot stay away from checking other tech trends as well. The last few years its been hard to miss the crypto/blockchain ...

New plugin: Secure Joomla Login

We have released a new plugin that adds a extra PIN code and a reCaptcha v2 check on Joomlas login. Security is very important on all fronts of a website. One often missed one is ...

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :