Disabling A Category

Updated . Posted . Visible to the public.

For some reason this does not work:

$category->setIsActive(false);

You must use this instead:

$category->setIsActive(0);

Mike Whitby
Last edit
Keywords
disable, inactivate, inactive
Posted by Mike Whitby to Magento (2012-05-15 10:20)