예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * {@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);
     }
 }