Inactive Categories Showing Up in JM Category List

Inactive Categories Are Showing Up in JM Category List. Note: We have both flat categories and products enabled. What code changes need to be made to exclude inactive categories from the extension.

1 answer

Profile photo of Jamie Carroll 0.00 $tone October 2, 2012
Public

was able to resolve by adding conditional statement around block of code:

add:
if($category->getIsActive()) {

prior to following code
if ($category->getId()) {
$this->setCategoryId(current(array($category->getId())));

add closing bracket for conditional statement prior to:
return $list;
}

#1

This question is now closed

Written By

Comments