31 \
Magento\Customer\Model\Session $customerSession,
50 return $this->_objectManager->get(\
Magento\Multishipping\Model\
Checkout\Type\Multishipping::class);
60 return $this->_objectManager->get(\
Magento\Multishipping\Model\
Checkout\Type\Multishipping\State::class);
70 return $this->_objectManager->get(\
Magento\Multishipping\Helper\Url::class);
80 return $this->_objectManager->get(\
Magento\
Checkout\Model\Session::class);
95 if ($this->_actionFlag->get(
'',
'redirectLogin')) {
105 if ($action ==
'index') {
106 $checkoutSessionQuote->setIsMultiShipping(
true);
108 }
elseif (!$checkoutSessionQuote->getIsMultiShipping() && !in_array(
110 [
'login',
'register',
'success']
114 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
118 if (!in_array($action, [
'login',
'register'])) {
119 $customerSession = $this->_objectManager->get(\
Magento\Customer\Model\Session::class);
120 if (!$customerSession->authenticate($this->_getHelper()->getMSLoginUrl())) {
121 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
124 if (!$this->_objectManager->get(
125 \
Magento\Multishipping\Helper\Data::class
126 )->isMultishippingCheckoutAvailable()) {
127 $error = $this->
_getCheckout()->getMinimumAmountError();
128 $this->messageManager->addError($error);
130 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
136 if (
$result instanceof \
Magento\Framework\Controller\ResultInterface) {
146 !in_array($action, [
'index',
'login',
'register',
'addresses',
'success'])
149 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
153 if ($action ==
'success' && $this->
_getCheckout()->getCheckoutSession()->getDisplaySuccess(
true)) {
161 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
165 $quote = $checkout->getQuote();
168 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
182 $error = $this->
_getCheckout()->getMinimumAmountError();
183 $this->messageManager->addError($error);
197 return $this->_objectManager->create(
198 \
Magento\Framework\UrlInterface::class
199 )->getUrl(
'*/*', [
'_secure' =>
true]);
209 return [
'redirectLogin' =>
true];
_redirect($path, $arguments=[])
elseif(isset( $params[ 'redirect_parent']))
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $accountManagement)
getCustomerBeforeAuthUrl()
_forward($action, $controller=null, $module=null, array $params=null)
dispatch(RequestInterface $request)
_preDispatchValidateCustomer($redirect=true, $addErrors=true)