source/Application/Model/Order.php
public function validateOrder($oBasket, $oUser)
    {
        // validating stock
        $iValidState = $this->validateStock($oBasket);

        if (!$iValidState) {
            // validating delivery
            $iValidState = $this->validateDelivery($oBasket);
        }

        if (!$iValidState) {
            // validating payment
            $iValidState = $this->validatePayment($oBasket);
        }

        if (!$iValidState) {
            //0003110 validating delivery address, it is not be changed during checkout process
            $iValidState = $this->validateDeliveryAddress($oUser);
        }

        if (!$iValidState) {
            // validating minimum price
            $iValidState = $this->validateBasket($oBasket);
        }

        return $iValidState;
    }
public function validateOrder($oBasket, $oUser)
    {
        // validating stock
        $iValidState = $this->validateStock($oBasket);

        if (!$iValidState) {
            // validating delivery
            $iValidState = $this->validateDelivery($oBasket);
        }

        if (!$iValidState) {
            // validating payment
            $iValidState = $this->validatePayment($oBasket);
        }

        if (!$iValidState) {
            //0003110 validating delivery address, it is not be changed during checkout process
            $iValidState = $this->validateDeliveryAddress($oUser);
        }

        if (!$iValidState) {
            // validating minimum price
            $iValidState = $this->validateBasket($oBasket);
        }

        return $iValidState;
    }
public function validateOrder ( $ oBasket , $ oUser ) { // validating stock $ iValidState = $ this -> validateStock ( $ oBasket ) ; if ( ! $ iValidState ) { // validating delivery $ iValidState = $ this -> validateDelivery ( $ oBasket ) ; } if ( ! $ iValidState ) { // validating payment $ iValidState = $ this -> validatePayment ( $ oBasket ) ; } if ( ! $ iValidState ) { //0003110 validating delivery address, it is not be changed during checkout process $ iValidState = $ this -> validateDeliveryAddress ( $ oUser ) ; } if ( ! $ iValidState ) { // validating minimum price $ iValidState = $ this -> validateBasket ( $ oBasket ) ; } return $ iValidState ; }
Validates order parameters like stock, delivery and payment
parameters

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket basket object
@param \OxidEsales\Eshop\Application\Model\User   $oUser   order user

@return null
Validates order parameters like stock delivery and payment parameters