0

How can I display all anchor categories in Magento (1.9.0.1) even with no result (empty category) as for attribute product?

As default behavior when I set "anchor" a category, this is shown in "Shopping by" section only if is no empty. I'ld like to show all categories.

screenshot

Community
  • 1
  • 1
KaMZaTa
  • 535
  • 2
  • 9
  • 24

1 Answers1

0

Dirty & fast way:

Edit: app/code/core/Mage/Catalog/Model/Layer/Filter/Category.php:170

if ($category->getIsActive() && $category->getProductCount()) {

And remove && $category->getProductCount().

More clean & right way is rewrite entire module extending core class.

KaMZaTa
  • 535
  • 2
  • 9
  • 24