source/Application/Controller/UserController.php
public function isDownloadableProductWarning()
    {
        $basket = $this->getSession()->getBasket();
        if ($basket && \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("blEnableDownloads")) {
            if ($basket->hasDownloadableProducts()) {
                return true;
            }
        }

        return false;
    }
public function isDownloadableProductWarning()
    {
        $basket = $this->getSession()->getBasket();
        if ($basket && \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("blEnableDownloads")) {
            if ($basket->hasDownloadableProducts()) {
                return true;
            }
        }

        return false;
    }
public function isDownloadableProductWarning ( ) { $ basket = $ this -> getSession ( ) -> getBasket ( ) ; if ( $ basket && \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( "blEnableDownloads" ) ) { if ( $ basket -> hasDownloadableProducts ( ) ) { return true ; } } return false ; }
Returns warning message if user want to buy downloadable product without registration.

@return bool
Returns warning message if user want to buy downloadable product without registration .