normal How to remove a subcategories with the homepage?

More
9 years 10 months ago - 9 years 10 months ago #7582 by Valeriy Nikitin
How to remove a subcategories with the homepage?
Attachments:
Last edit: 9 years 10 months ago by Valeriy Nikitin.

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

More
9 years 10 months ago #7585 by Nguyen Mai
Hello,

You can comment line 65-78 in file 'templates/ot_furnite/html/mod_ot_virtuemart_category/scroll.php'
Code:
<?php if ($category->childs) { ?> <ul class="ot-cat-menu<?php echo $class_sfx; ?>"> <?php foreach ($category->childs as $child) { $category_model = VmModel::getModel('category'); $count_p = $category_model->countProducts($category->virtuemart_category_id); $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$child->virtuemart_category_id); $cattext = $child->category_name; // $cattext = $child->category_name.' ('.$count_p.')'; ?> <li><?php echo JHTML::link($caturl, $cattext); ?></li> <?php } ?> </ul> <?php } ?>
change to
Code:
<?php /* if ($category->childs) { ?> <ul class="ot-cat-menu<?php echo $class_sfx; ?>"> <?php foreach ($category->childs as $child) { $category_model = VmModel::getModel('category'); $count_p = $category_model->countProducts($category->virtuemart_category_id); $caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$child->virtuemart_category_id); $cattext = $child->category_name; // $cattext = $child->category_name.' ('.$count_p.')'; ?> <li><?php echo JHTML::link($caturl, $cattext); ?></li> <?php } ?> </ul> <?php } */ ?>
The following user(s) said Thank You: Valeriy Nikitin

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

More
9 years 10 months ago #7598 by Valeriy Nikitin

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

Time to create page: 0.251 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam