- Posts: 5
- Thank you received: 0
How to remove a subcategories with the homepage?
- Valeriy Nikitin
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
10 years 11 months ago - 10 years 11 months ago #7582
by Valeriy Nikitin
How to remove a subcategories with the homepage? was created by Valeriy Nikitin
How to remove a subcategories with the homepage?
Attachments:
Last edit: 10 years 11 months ago by Valeriy Nikitin.
Please Log in or Create an account to join the conversation.
- Nguyen Mai
-
- Offline
- Senior Boarder
-
Less
More
- Posts: 47
- Thank you received: 10
10 years 11 months ago #7585
by Nguyen Mai
Replied by Nguyen Mai on topic Re: How to remove a subcategories with the homepage?
Hello,
You can comment line 65-78 in file 'templates/ot_furnite/html/mod_ot_virtuemart_category/scroll.php'
change to
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 } ?>
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.
- Valeriy Nikitin
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 5
- Thank you received: 0
10 years 11 months ago #7598
by Valeriy Nikitin
Replied by Valeriy Nikitin on topic Re: How to remove a subcategories with the homepage?
Thank You

Please Log in or Create an account to join the conversation.
Time to create page: 0.186 seconds