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
Addresses.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Multishipping\Controller\Checkout
;
8
9
use
Magento\Framework\App\Action\HttpGetActionInterface
as HttpGetActionInterface;
10
use
Magento\Multishipping\Model\Checkout\Type\Multishipping\State
;
11
12
class
Addresses
extends
\Magento\Multishipping\Controller\Checkout
implements HttpGetActionInterface
13
{
19
public
function
execute
()
20
{
21
// If customer do not have addresses
22
if
(!$this->
_getCheckout
()->getCustomerDefaultShippingAddress()) {
23
$this->
_redirect
(
'*/checkout_address/newShipping'
);
24
return
;
25
}
26
27
$this->
_getState
()->unsCompleteStep(
State::STEP_SHIPPING
);
28
29
$this->
_getState
()->setActiveStep(
State::STEP_SELECT_ADDRESSES
);
30
if
(!$this->
_getCheckout
()->validateMinimumAmount()) {
31
$message
= $this->
_getCheckout
()->getMinimumAmountDescription();
32
$this->messageManager->addNotice(
$message
);
33
}
34
$this->_view->loadLayout();
35
$this->_view->renderLayout();
36
}
37
}
Magento\Multishipping\Controller\Checkout\Addresses
Definition:
Addresses.php:12
Magento\Multishipping\Controller\Checkout\_getState
_getState()
Definition:
Checkout.php:58
Magento\Framework\App\Action\Action\_redirect
_redirect($path, $arguments=[])
Definition:
Action.php:167
Magento\Multishipping\Controller\Checkout
Definition:
CheckItemsTest.php:8
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Multishipping\Controller\Checkout
Definition:
Checkout.php:18
$message
$message
Definition:
notifications.php:7
Magento\Multishipping\Controller\Checkout\_getCheckout
_getCheckout()
Definition:
Checkout.php:48
Magento\Multishipping\Model\Checkout\Type\Multishipping\State
Definition:
State.php:16
Magento\Multishipping\Controller\Checkout\Addresses\execute
execute()
Definition:
Addresses.php:19
Magento\Multishipping\Model\Checkout\Type\Multishipping\State\STEP_SELECT_ADDRESSES
const STEP_SELECT_ADDRESSES
Definition:
State.php:18
Magento\Multishipping\Model\Checkout\Type\Multishipping\State\STEP_SHIPPING
const STEP_SHIPPING
Definition:
State.php:20