source/Application/Model/Basket.php
public function getShippingId()
    {
        if (!$this->_sShippingSetId) {
            $this->_sShippingSetId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('sShipSet');
        }

        $sActPaymentId = $this->getPaymentId();
        // setting default if none is set
        if (!$this->_sShippingSetId && $sActPaymentId != 'oxempty') {
            $oUser = $this->getUser();

            // choosing first preferred delivery set
            list(, $sActShipSet) = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\DeliverySetList::class)->getDeliverySetData(null, $oUser, $this);
            // in case nothing was found and no user set - choosing default
            $this->_sShippingSetId = $sActShipSet ? $sActShipSet : ($oUser ? null : 'oxidstandard');
        } elseif (!$this->isAdmin() && $sActPaymentId == 'oxempty') {
            // in case 'oxempty' is payment id - delivery set must be reset
            $this->_sShippingSetId = null;
        }

        return $this->_sShippingSetId;
    }
public function getShippingId()
    {
        if (!$this->_sShippingSetId) {
            $this->_sShippingSetId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('sShipSet');
        }

        $sActPaymentId = $this->getPaymentId();
        // setting default if none is set
        if (!$this->_sShippingSetId && $sActPaymentId != 'oxempty') {
            $oUser = $this->getUser();

            // choosing first preferred delivery set
            list(, $sActShipSet) = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\DeliverySetList::class)->getDeliverySetData(null, $oUser, $this);
            // in case nothing was found and no user set - choosing default
            $this->_sShippingSetId = $sActShipSet ? $sActShipSet : ($oUser ? null : 'oxidstandard');
        } elseif (!$this->isAdmin() && $sActPaymentId == 'oxempty') {
            // in case 'oxempty' is payment id - delivery set must be reset
            $this->_sShippingSetId = null;
        }

        return $this->_sShippingSetId;
    }
public function getShippingId ( ) { if ( ! $ this -> _sShippingSetId ) { $ this -> _sShippingSetId = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'sShipSet' ) ; } $ sActPaymentId = $ this -> getPaymentId ( ) ; // setting default if none is set if ( ! $ this -> _sShippingSetId && $ sActPaymentId != 'oxempty' ) { $ oUser = $ this -> getUser ( ) ; // choosing first preferred delivery set list ( , $ sActShipSet ) = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ DeliverySetList :: class ) -> getDeliverySetData ( null , $ oUser , $ this ) ; // in case nothing was found and no user set - choosing default $ this -> _sShippingSetId = $ sActShipSet ? $ sActShipSet : ( $ oUser ? null : 'oxidstandard' ) ; } elseif ( ! $ this -> isAdmin ( ) && $ sActPaymentId == 'oxempty' ) { // in case 'oxempty' is payment id - delivery set must be reset $ this -> _sShippingSetId = null ; } return $ this -> _sShippingSetId ; }
Get basket shipping set, if shipping set id is not set, try to get it from session

@return string oxDeliverySet
Get basket shipping set if shipping set id is not set try to get it from session