/** * Retrieve store model object * * @return Mage_Core_Model_Store */ public function getStore() { if (is_null($this->_store)) { $this->_store = Mage::app()->getStore($this->getStoreId()); if ($currencyId = $this->getCurrencyId()) { $this->_store->setCurrentCurrencyCode($currencyId); } } return $this->_store; }