/** * 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); } }