Welcome, Guest
Username: Password: Remember me

TOPIC: How to remove a subcategories with the homepage?

How to remove a subcategories with the homepage? 2 years 4 months ago #7582

  • tihshop
  • tihshop's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
How to remove a subcategories with the homepage?
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
Last Edit: 2 years 4 months ago by tihshop.
The administrator has disabled public write access.

Re: How to remove a subcategories with the homepage? 2 years 4 months ago #7585

  • crystal_moon
  • crystal_moon's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
  • Karma: 2
Hello,

You can comment line 65-78 in file 'templates/ot_furnite/html/mod_ot_virtuemart_category/scroll.php'
<?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
<?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 administrator has disabled public write access.
The following user(s) said Thank You: tihshop

Re: How to remove a subcategories with the homepage? 2 years 4 months ago #7598

  • tihshop
  • tihshop's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Thank You ;)
The administrator has disabled public write access.
Time to create page: 0.158 seconds