/** * Retrieve store model object * * @return \Magento\Store\Model\Store */ public function getStore() { if ($this->_store === null) { $this->_store = $this->_storeManager->getStore($this->getStoreId()); $currencyId = $this->getCurrencyId(); if ($currencyId) { $this->_store->setCurrentCurrencyCode($currencyId); } } return $this->_store; }
/** * {@inheritdoc} */ public function setCurrentCurrencyCode($code) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setCurrentCurrencyCode'); if (!$pluginInfo) { return parent::setCurrentCurrencyCode($code); } else { return $this->___callPlugins('setCurrentCurrencyCode', func_get_args(), $pluginInfo); } }