コード例 #1
0
 /**
  * 
  * @param Varian_Object $actionObject
  */
 protected function _generateStockActionButtons($actionObject)
 {
     if (!count($actionObject->getData('actions'))) {
         return $this;
     }
     foreach ($actionObject->getData('actions') as $actionName => $stockAction) {
         $this->_addButton($actionName, $stockAction['params'], 0, $stockAction['position']);
     }
     return $this;
 }
コード例 #2
0
 /**
  * Add factfinder navigation on catalog
  *
  * @param Varian_Object $observer
  *
  * @return void
  */
 public function addLayerFiltersToCatalog($observer)
 {
     if (!Mage::helper('factfinder')->isEnabled('catalog_navigation')) {
         return;
     }
     $block = $observer->getBlock();
     if (!$block instanceof Mage_Catalog_Block_Layer_View || $block instanceof Mage_CatalogSearch_Block_Layer) {
         return;
     }
     $this->_addLayeredNavigation($block);
 }