src/ExtranetRegistrationGuestBundle/pkgExtranet/objects/WebModules/MTExtranetRegistrationGuestCore/MTExtranetRegistrationGuestCore.class.php
protected function IsAllowedToShowRegisterAfterShoppingPage()
    {
        $oStep = TdbShopOrderStep::GetStep('thankyou');
        $bUserIsValid = false;
        if (!is_null($oStep)) {
            $oUser = $oStep->GetLastUserBoughtFromSession();
            if (!is_null($oUser)) {
                $bUserIsValid = $this->ValidateGivenUserData($oUser);
                if ($bUserIsValid) {
                    $oUserOrder = &TShopBasket::GetLastCreatedOrder();
                    if ($oUser->LoginExists()) {
                        $bUserIsValid = false;
                    }
                    if (is_null($oUserOrder)) {
                        $bUserIsValid = false;
                    }
                }
            }
        }

        return $bUserIsValid;
    }
protected function IsAllowedToShowRegisterAfterShoppingPage()
    {
        $oStep = TdbShopOrderStep::GetStep('thankyou');
        $bUserIsValid = false;
        if (!is_null($oStep)) {
            $oUser = $oStep->GetLastUserBoughtFromSession();
            if (!is_null($oUser)) {
                $bUserIsValid = $this->ValidateGivenUserData($oUser);
                if ($bUserIsValid) {
                    $oUserOrder = &TShopBasket::GetLastCreatedOrder();
                    if ($oUser->LoginExists()) {
                        $bUserIsValid = false;
                    }
                    if (is_null($oUserOrder)) {
                        $bUserIsValid = false;
                    }
                }
            }
        }

        return $bUserIsValid;
    }
protected function IsAllowedToShowRegisterAfterShoppingPage ( ) { $ oStep = TdbShopOrderStep :: GetStep ( 'thankyou' ) ; $ bUserIsValid = false ; if ( ! is_null ( $ oStep ) ) { $ oUser = $ oStep -> GetLastUserBoughtFromSession ( ) ; if ( ! is_null ( $ oUser ) ) { $ bUserIsValid = $ this -> ValidateGivenUserData ( $ oUser ) ; if ( $ bUserIsValid ) { $ oUserOrder = & TShopBasket :: GetLastCreatedOrder ( ) ; if ( $ oUser -> LoginExists ( ) ) { $ bUserIsValid = false ; } if ( is_null ( $ oUserOrder ) ) { $ bUserIsValid = false ; } } } } return $ bUserIsValid ; }
Checks if user is allowed to register after shopping.

@return bool
Checks if user is allowed to register after shopping .