/** * In transaction mails the store is passed by template definition and processing * * @param type $storeId Store ID * * @return Mage_Core_Model_Store */ protected function _getStore($storeId = null) { if ($this->hasData('store')) { return $this->getData('store'); } else { return parent::_getStore($storeId); } }
/** * Additional validation if displaying in shop frontend is allowed * * @return bool */ public function isActive() { return parent::isActive() && Mage::getStoreConfig(Symmetrics_TrustedRating_Model_Trustedrating::XML_PATH_RATEUS_SHOW_IN_FRONTEND, $this->_getStore()); }