I need to retrieve all filterable attributes for category. I'm using that snippet:
$category = Mage::getModel('catalog/category')->load($categoryId); $layer = Mage::getModel('catalog/layer'); $layer->setCurrentCategory($category); $attributes = $layer->getFilterableAttributes();//$attributes now is empty array
Category has product with filterable attributes, also in categories options anchor was enabled. This code using in SOAP API.
Maybe someone know where I made mistake?