source/Application/Controller/OrderController.php
protected function _validateTermsAndConditions()
    {
        $blValid = true;
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if ($oConfig->getConfigParam('blConfirmAGB') && !$oConfig->getRequestParameter('ord_agb')) {
            $blValid = false;
        }

        if ($oConfig->getConfigParam('blEnableIntangibleProdAgreement')) {
            $oBasket = $this->getBasket();

            $blDownloadableProductsAgreement = $oConfig->getRequestParameter('oxdownloadableproductsagreement');
            if ($blValid && $oBasket->hasArticlesWithDownloadableAgreement() && !$blDownloadableProductsAgreement) {
                $blValid = false;
            }

            $blServiceProductsAgreement = $oConfig->getRequestParameter('oxserviceproductsagreement');
            if ($blValid && $oBasket->hasArticlesWithIntangibleAgreement() && !$blServiceProductsAgreement) {
                $blValid = false;
            }
        }

        return $blValid;
    }
protected function _validateTermsAndConditions()
    {
        $blValid = true;
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if ($oConfig->getConfigParam('blConfirmAGB') && !$oConfig->getRequestParameter('ord_agb')) {
            $blValid = false;
        }

        if ($oConfig->getConfigParam('blEnableIntangibleProdAgreement')) {
            $oBasket = $this->getBasket();

            $blDownloadableProductsAgreement = $oConfig->getRequestParameter('oxdownloadableproductsagreement');
            if ($blValid && $oBasket->hasArticlesWithDownloadableAgreement() && !$blDownloadableProductsAgreement) {
                $blValid = false;
            }

            $blServiceProductsAgreement = $oConfig->getRequestParameter('oxserviceproductsagreement');
            if ($blValid && $oBasket->hasArticlesWithIntangibleAgreement() && !$blServiceProductsAgreement) {
                $blValid = false;
            }
        }

        return $blValid;
    }
protected function _validateTermsAndConditions ( ) { $ blValid = true ; $ oConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( $ oConfig -> getConfigParam ( 'blConfirmAGB' ) && ! $ oConfig -> getRequestParameter ( 'ord_agb' ) ) { $ blValid = false ; } if ( $ oConfig -> getConfigParam ( 'blEnableIntangibleProdAgreement' ) ) { $ oBasket = $ this -> getBasket ( ) ; $ blDownloadableProductsAgreement = $ oConfig -> getRequestParameter ( 'oxdownloadableproductsagreement' ) ; if ( $ blValid && $ oBasket -> hasArticlesWithDownloadableAgreement ( ) && ! $ blDownloadableProductsAgreement ) { $ blValid = false ; } $ blServiceProductsAgreement = $ oConfig -> getRequestParameter ( 'oxserviceproductsagreement' ) ; if ( $ blValid && $ oBasket -> hasArticlesWithIntangibleAgreement ( ) && ! $ blServiceProductsAgreement ) { $ blValid = false ; } } return $ blValid ; }
Validates whether necessary terms and conditions checkboxes were checked.

@return bool
Validates whether necessary terms and conditions checkboxes were checked .