Model/Service/OrderService.php
private function getCheckoutMethod(Quote $quote) {
        if ($this->customerSession->isLoggedIn()) {
            return Onepage::METHOD_CUSTOMER;
        }

        if (!$quote->getCheckoutMethod()) {
            if ($this->checkoutHelper->isAllowedGuestCheckout($quote)) {
                $quote->setCheckoutMethod(Onepage::METHOD_GUEST);
            } else {
                $quote->setCheckoutMethod(Onepage::METHOD_REGISTER);
            }
        }

        return $quote->getCheckoutMethod();
    }
private function getCheckoutMethod(Quote $quote) {
        if ($this->customerSession->isLoggedIn()) {
            return Onepage::METHOD_CUSTOMER;
        }

        if (!$quote->getCheckoutMethod()) {
            if ($this->checkoutHelper->isAllowedGuestCheckout($quote)) {
                $quote->setCheckoutMethod(Onepage::METHOD_GUEST);
            } else {
                $quote->setCheckoutMethod(Onepage::METHOD_REGISTER);
            }
        }

        return $quote->getCheckoutMethod();
    }
private function getCheckoutMethod ( Quote $ quote ) { if ( $ this -> customerSession -> isLoggedIn ( ) ) { return Onepage :: METHOD_CUSTOMER ; } if ( ! $ quote -> getCheckoutMethod ( ) ) { if ( $ this -> checkoutHelper -> isAllowedGuestCheckout ( $ quote ) ) { $ quote -> setCheckoutMethod ( Onepage :: METHOD_GUEST ) ; } else { $ quote -> setCheckoutMethod ( Onepage :: METHOD_REGISTER ) ; } } return $ quote -> getCheckoutMethod ( ) ; }
Get checkout method.

@param Quote $quote
@return string
Get checkout method .