source/Application/Model/Order.php
public function getDelAddressInfo()
    {
        $oDelAdress = null;
        if (!($soxAddressId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('deladrid'))) {
            $soxAddressId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('deladrid');
        }
        if ($soxAddressId) {
            $oDelAdress = oxNew(\OxidEsales\Eshop\Application\Model\Address::class);
            $oDelAdress->load($soxAddressId);

            //get delivery country name from delivery country id
            if ($oDelAdress->oxaddress__oxcountryid->value && $oDelAdress->oxaddress__oxcountryid->value != -1) {
                $oCountry = oxNew(\OxidEsales\Eshop\Application\Model\Country::class);
                $oCountry->load($oDelAdress->oxaddress__oxcountryid->value);
                $oDelAdress->oxaddress__oxcountry = clone $oCountry->oxcountry__oxtitle;
            }
        }

        return $oDelAdress;
    }
public function getDelAddressInfo()
    {
        $oDelAdress = null;
        if (!($soxAddressId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('deladrid'))) {
            $soxAddressId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('deladrid');
        }
        if ($soxAddressId) {
            $oDelAdress = oxNew(\OxidEsales\Eshop\Application\Model\Address::class);
            $oDelAdress->load($soxAddressId);

            //get delivery country name from delivery country id
            if ($oDelAdress->oxaddress__oxcountryid->value && $oDelAdress->oxaddress__oxcountryid->value != -1) {
                $oCountry = oxNew(\OxidEsales\Eshop\Application\Model\Country::class);
                $oCountry->load($oDelAdress->oxaddress__oxcountryid->value);
                $oDelAdress->oxaddress__oxcountry = clone $oCountry->oxcountry__oxtitle;
            }
        }

        return $oDelAdress;
    }
public function getDelAddressInfo ( ) { $ oDelAdress = null ; if ( ! ( $ soxAddressId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'deladrid' ) ) ) { $ soxAddressId = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'deladrid' ) ; } if ( $ soxAddressId ) { $ oDelAdress = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Address :: class ) ; $ oDelAdress -> load ( $ soxAddressId ) ; //get delivery country name from delivery country id if ( $ oDelAdress -> oxaddress__oxcountryid -> value && $ oDelAdress -> oxaddress__oxcountryid -> value != - 1 ) { $ oCountry = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Country :: class ) ; $ oCountry -> load ( $ oDelAdress -> oxaddress__oxcountryid -> value ) ; $ oDelAdress -> oxaddress__oxcountry = clone $ oCountry -> oxcountry__oxtitle ; } } return $ oDelAdress ; }
Loads and returns delivery address object or null
if deladrid is not configured, or object was not loaded

@return \OxidEsales\Eshop\Application\Model\Address|null
Loads and returns delivery address object or null if deladrid is not configured or object was not loaded