Example #1
0
 /**
  * Remove the price filter options from the filterable attributes
  *
  * @param Mage_Catalog_Block_Layer_View $oBlock
  */
 protected function removePriceFilter($oBlock)
 {
     $aFilterableAttributes = $oBlock->getData('_filterable_attributes');
     $aNewFilterableAttributes = array();
     foreach ($aFilterableAttributes as $oFilterableAttribute) {
         if ($oFilterableAttribute->getAttributeCode() != 'price') {
             $aNewFilterableAttributes[] = $oFilterableAttribute;
         }
     }
     $oBlock->setData('_filterable_attributes', $aNewFilterableAttributes);
 }