Is it possible to have sub-categories?
Thanks,
Steven
ofcourse
How to get more levels of sub-categories??
By default we get only 2 category levels in VM2.
I m using Joomla!1.7.3 and VM2.
When entering your new category under Details / Category Ordering select the second (third or fourth) category below which the new one should sit.
Ya i have inserted all the categories and sub-categories.
I have the 3rd level sub-categories but cant see it. :(
I am using "mod_virtuemart_category" module which was included in VM all in one installer and code for default.php is shown below:
Quote<?php foreach ($categories as $category) {
$active_menu = '';
$caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$category->virtuemart_category_id);
$cattext = $category->category_name;
//if ($active_category_id == $category->virtuemart_category_id) $active_menu = 'class="active"';
if (in_array( $category->virtuemart_category_id, $parentCategories)) $active_menu = 'class="active"'; ?>
<li <?php echo $active_menu ?>>
<?php echo JHTML::link($caturl, $cattext); ?>
<?php if ($category->childs ) { ?>
<ul class="menu<?php echo $class_sfx; ?>">
<?php
foreach ($category->childs as $child) {
$caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$child->virtuemart_category_id);
$cattext = $child->category_name; ?>
<li>
<?php echo JHTML::link($caturl, $cattext); ?>
</li>
<?php } ?>
</ul>
<?php } ?>
</li>
<?php } ?>