Component/BasketComponent.php
public function actionExpressCheckoutFromDetailsPage()
    {
        $validator = $this->getValidator();
        $currentArticle = $this->getCurrentArticle();
        $validator->setItemToValidate($currentArticle);
        $validator->setBasket($this->getSession()->getBasket());
        if ($validator->isArticleValid()) {
            //Make express checkout
            $res = $this->actionAddToBasketAndGoToCheckout();
        } else {
            $res = $this->_getRedirectUrl();
            //if amount is more than 0, do not redirect, show ESC popup instead
            if ($currentArticle->getArticleAmount() > 0) {
                $this->shopPopUp = true;
                $res = null;
            }
        }

        return $res;
    }
public function actionExpressCheckoutFromDetailsPage()
    {
        $validator = $this->getValidator();
        $currentArticle = $this->getCurrentArticle();
        $validator->setItemToValidate($currentArticle);
        $validator->setBasket($this->getSession()->getBasket());
        if ($validator->isArticleValid()) {
            //Make express checkout
            $res = $this->actionAddToBasketAndGoToCheckout();
        } else {
            $res = $this->_getRedirectUrl();
            //if amount is more than 0, do not redirect, show ESC popup instead
            if ($currentArticle->getArticleAmount() > 0) {
                $this->shopPopUp = true;
                $res = null;
            }
        }

        return $res;
    }
public function actionExpressCheckoutFromDetailsPage ( ) { $ validator = $ this -> getValidator ( ) ; $ currentArticle = $ this -> getCurrentArticle ( ) ; $ validator -> setItemToValidate ( $ currentArticle ) ; $ validator -> setBasket ( $ this -> getSession ( ) -> getBasket ( ) ) ; if ( $ validator -> isArticleValid ( ) ) { //Make express checkout $ res = $ this -> actionAddToBasketAndGoToCheckout ( ) ; } else { $ res = $ this -> _getRedirectUrl ( ) ; //if amount is more than 0, do not redirect, show ESC popup instead if ( $ currentArticle -> getArticleAmount ( ) > 0 ) { $ this -> shopPopUp = true ; $ res = null ; } } return $ res ; }
Method returns URL to checkout products OR to show popup.

@return string
Method returns URL to checkout products OR to show popup .