source/Application/Model/Basket.php
public function hasArticlesWithDownloadableAgreement()
    {
        $blHasArticlesWithIntangibleAgreement = false;

        /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */
        foreach ($this->_aBasketContents as $oBasketItem) {
            if ($oBasketItem->getArticle(false) && $oBasketItem->getArticle(false)->hasDownloadableAgreement()) {
                $blHasArticlesWithIntangibleAgreement = true;
                break;
            }
        }

        return $blHasArticlesWithIntangibleAgreement;
    }
public function hasArticlesWithDownloadableAgreement()
    {
        $blHasArticlesWithIntangibleAgreement = false;

        /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */
        foreach ($this->_aBasketContents as $oBasketItem) {
            if ($oBasketItem->getArticle(false) && $oBasketItem->getArticle(false)->hasDownloadableAgreement()) {
                $blHasArticlesWithIntangibleAgreement = true;
                break;
            }
        }

        return $blHasArticlesWithIntangibleAgreement;
    }
public function hasArticlesWithDownloadableAgreement ( ) { $ blHasArticlesWithIntangibleAgreement = false ; /** @var \OxidEsales\Eshop\Application\Model\BasketItem $oBasketItem */ foreach ( $ this -> _aBasketContents as $ oBasketItem ) { if ( $ oBasketItem -> getArticle ( false ) && $ oBasketItem -> getArticle ( false ) -> hasDownloadableAgreement ( ) ) { $ blHasArticlesWithIntangibleAgreement = true ; break ; } } return $ blHasArticlesWithIntangibleAgreement ; }
Returns whether there are any articles in basket with downloadable products agreement enabled.

@return bool
Returns whether there are any articles in basket with downloadable products agreement enabled .