source/Application/Model/Basket.php
public function hasDownloadableProducts()
    {
        $this->_blDownloadableProducts = false;
        /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */
        foreach ($this->_aBasketContents as $oBasketItem) {
            if ($oBasketItem->getArticle(false) && $oBasketItem->getArticle(false)->isDownloadable()) {
                $this->_blDownloadableProducts = true;
                break;
            }
        }

        return $this->_blDownloadableProducts;
    }
public function hasDownloadableProducts()
    {
        $this->_blDownloadableProducts = false;
        /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */
        foreach ($this->_aBasketContents as $oBasketItem) {
            if ($oBasketItem->getArticle(false) && $oBasketItem->getArticle(false)->isDownloadable()) {
                $this->_blDownloadableProducts = true;
                break;
            }
        }

        return $this->_blDownloadableProducts;
    }
public function hasDownloadableProducts ( ) { $ this -> _blDownloadableProducts = false ; /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */ foreach ( $ this -> _aBasketContents as $ oBasketItem ) { if ( $ oBasketItem -> getArticle ( false ) && $ oBasketItem -> getArticle ( false ) -> isDownloadable ( ) ) { $ this -> _blDownloadableProducts = true ; break ; } } return $ this -> _blDownloadableProducts ; }
Returns true if at least one product is downloadable in basket

@return bool
Returns true if at least one product is downloadable in basket