source/Application/Model/Order.php
public function getOrderCurrency()
    {
        if ($this->_oOrderCurrency === null) {
            // setting default in case unrecognized currency was set during order
            $aCurrencies = \OxidEsales\Eshop\Core\Registry::getConfig()->getCurrencyArray();
            $this->_oOrderCurrency = current($aCurrencies);

            foreach ($aCurrencies as $oCurr) {
                if ($oCurr->name == $this->oxorder__oxcurrency->value) {
                    $this->_oOrderCurrency = $oCurr;
                    break;
                }
            }
        }

        return $this->_oOrderCurrency;
    }
public function getOrderCurrency()
    {
        if ($this->_oOrderCurrency === null) {
            // setting default in case unrecognized currency was set during order
            $aCurrencies = \OxidEsales\Eshop\Core\Registry::getConfig()->getCurrencyArray();
            $this->_oOrderCurrency = current($aCurrencies);

            foreach ($aCurrencies as $oCurr) {
                if ($oCurr->name == $this->oxorder__oxcurrency->value) {
                    $this->_oOrderCurrency = $oCurr;
                    break;
                }
            }
        }

        return $this->_oOrderCurrency;
    }
public function getOrderCurrency ( ) { if ( $ this -> _oOrderCurrency === null ) { // setting default in case unrecognized currency was set during order $ aCurrencies = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getCurrencyArray ( ) ; $ this -> _oOrderCurrency = current ( $ aCurrencies ) ; foreach ( $ aCurrencies as $ oCurr ) { if ( $ oCurr -> name == $ this -> oxorder__oxcurrency -> value ) { $ this -> _oOrderCurrency = $ oCurr ; break ; } } } return $ this -> _oOrderCurrency ; }
Returns actual order currency object. In case currency was not recognized
due to changed name returns first shop currency object

@return stdClass
Returns actual order currency object . In case currency was not recognized due to changed name returns first shop currency object