I need to show only simple products in category page, but I cant set "not visible" to the configurable because I need the an active product page from the configurables.
I found this code to remove the configurables from the listing:
$_productCollection=$this->getLoadedProductCollection();
$_productCollection = clone $this->getLoadedProductCollection();
$_productCollection->clear()
->addAttributeToFilter('type_id', 'simple')
->load();
$_helper = $this->helper('catalog/output');
It works, but, In the layered navigation the configurable product are still counting. Its like "Color: Red (2)" but I just have 1 red (simple). How can I remove completly the configurable products?