protected function loginCheckout()
    {
        $result = $this->user_action->login($this->getSubmitted('user'));

        if (isset($result['user'])) {
            $result = $this->cart_action->login($result['user'], $this->data_cart);
        }

        if (!empty($result['user'])) {
            $this->redirect($result['redirect'], $result['message'], $result['severity']);
        }

        $this->setError('login', $result['message']);
    }
protected function loginCheckout()
    {
        $result = $this->user_action->login($this->getSubmitted('user'));

        if (isset($result['user'])) {
            $result = $this->cart_action->login($result['user'], $this->data_cart);
        }

        if (!empty($result['user'])) {
            $this->redirect($result['redirect'], $result['message'], $result['severity']);
        }

        $this->setError('login', $result['message']);
    }
protected function loginCheckout ( ) { $ result = $ this -> user_action -> login ( $ this -> getSubmitted ( 'user' ) ) ; if ( isset ( $ result [ 'user' ] ) ) { $ result = $ this -> cart_action -> login ( $ result [ 'user' ] , $ this -> data_cart ) ; } if ( ! empty ( $ result [ 'user' ] ) ) { $ this -> redirect ( $ result [ 'redirect' ] , $ result [ 'message' ] , $ result [ 'severity' ] ) ; } $ this -> setError ( 'login' , $ result [ 'message' ] ) ; }
Log in a customer during checkout
Log in a customer during checkout