Jump to content

Categories block with number of products is not working properly


SplashSalons
 Share

Recommended Posts

Hi,

 

it is not the number of subcategories that is being displayed - it's the number of products that belong into the category.

If you want to change the number to subcategories, you would have to fiddle with blockcategories.php a bit.

Share this post


Link to post
Share on other sites

Basically I think I need to rewrite this part of the code in order to stop displaying subcategories as 0.

$children = array();
		if (isset($resultParents[$id_category]) && count($resultParents[$id_category]) && ($maxDepth == 0 || $currentDepth < $maxDepth))
			foreach ($resultParents[$id_category] as $subcat)
				$children[] = $this->getTree($resultParents, $resultIds, $maxDepth, $subcat['id_category'], $currentDepth + 1);

Can somebody help me on this please?

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More