cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Magento get filters based on product collection?

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to get Magento get filters based on product collection?

I am building a custom API for SOAP and I want to get the filters for the collection.

 

$collection = Mage::getModel('catalog/category')->load($category_id)->getProductCollection()->setStoreId(1)->setPageSize(20);

 

I am adding some filters also to the $collection.

 

This is the collection that I have and I want to get all filters and values so I can display them into the mobile APP that is making this custom SOAP call.

 

On this moment I manage to get all attributes that are in layer from a category, but I need to be from a collection because the collection is going to be filtered.

 

Can someone help me with this?