/** * Before collection load * * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Category_Collection */ protected function _beforeLoad() { Mage::dispatchEvent($this->_eventPrefix . '_load_before', array($this->_eventObject => $this)); return parent::_beforeLoad(); }
/** * Add tax class id attribute to select and join price rules data if needed * * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */ protected function _beforeLoad() { // if ($this->_addFinalPrice) { // $this->_joinPriceRules(); // } Mage::dispatchEvent('catalog_product_collection_load_before', array('collection' => $this)); return parent::_beforeLoad(); }
/** * Add tax class id attribute to select and join price rules data if needed * * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */ protected function _beforeLoad() { if ($this->_addFinalPrice) { $this->_joinPriceRules(); } $this->addAttributeToSelect('tax_class_id'); return parent::_beforeLoad(); }