Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-multishipping
Controller
Checkout
Register.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Multishipping\Controller\Checkout
;
8
9
class
Register
extends
\Magento\Multishipping\Controller\Checkout
10
{
16
public
function
execute
()
17
{
18
if
($this->_objectManager->get(\
Magento
\Customer\Model\Session::class)->isLoggedIn()) {
19
$this->
getResponse
()->setRedirect($this->
_getHelper
()->getMSCheckoutUrl());
20
return
;
21
}
22
23
$this->_view->loadLayout();
24
25
$registerForm = $this->_view->getLayout()->getBlock(
'customer_form_register'
);
26
if
($registerForm) {
27
$registerForm->setShowAddressFields(
28
true
29
)->setBackUrl(
30
$this->
_getHelper
()->getMSLoginUrl()
31
)->setSuccessUrl(
32
$this->
_getHelper
()->getMSShippingAddressSavedUrl()
33
)->setErrorUrl(
34
$this->_url->getCurrentUrl()
35
);
36
}
37
38
$this->_view->renderLayout();
39
}
40
}
Magento\Multishipping\Controller\Checkout
Definition:
CheckItemsTest.php:8
Magento\Multishipping\Controller\Checkout\Register
Definition:
Register.php:9
Magento\Multishipping\Controller\Checkout
Definition:
Checkout.php:18
Magento\Multishipping\Controller\Checkout\Register\execute
execute()
Definition:
Register.php:16
Magento\Multishipping\Controller\Checkout\_getHelper
_getHelper()
Definition:
Checkout.php:68
Magento
Magento\Checkout\Controller\Express\RedirectLoginInterface\getResponse
getResponse()