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
ShippingPost.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Multishipping\Controller\Checkout
;
8
9
use
Magento\Multishipping\Model\Checkout\Type\Multishipping\State
;
10
11
class
ShippingPost
extends
\Magento\Multishipping\Controller\Checkout
12
{
16
public
function
execute
()
17
{
18
$shippingMethods = $this->
getRequest
()->getPost(
'shipping_method'
);
19
try
{
20
$this->_eventManager->dispatch(
21
'checkout_controller_multishipping_shipping_post'
,
22
[
'request'
=> $this->
getRequest
(),
'quote'
=> $this->
_getCheckout
()->getQuote()]
23
);
24
$this->
_getCheckout
()->setShippingMethods($shippingMethods);
25
$this->
_getState
()->setActiveStep(
State::STEP_BILLING
);
26
$this->
_getState
()->setCompleteStep(
State::STEP_SHIPPING
);
27
$this->
_redirect
(
'*/*/billing'
);
28
}
catch
(\
Exception
$e) {
29
$this->messageManager->addError($e->getMessage());
30
$this->
_redirect
(
'*/*/shipping'
);
31
}
32
}
33
}
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\Multishipping\Model\Checkout\Type\Multishipping\State\STEP_BILLING
const STEP_BILLING
Definition:
State.php:22
Magento\Multishipping\Controller\Checkout\ShippingPost\execute
execute()
Definition:
ShippingPost.php:16
Magento\Multishipping\Controller\Checkout
Definition:
Checkout.php:18
Magento\Multishipping\Controller\Checkout\_getCheckout
_getCheckout()
Definition:
Checkout.php:48
Magento\Multishipping\Model\Checkout\Type\Multishipping\State
Definition:
State.php:16
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
Magento\Catalog\Model\Product\Exception
Definition:
Exception.php:14
Magento\Multishipping\Controller\Checkout\ShippingPost
Definition:
ShippingPost.php:11
Magento\Multishipping\Model\Checkout\Type\Multishipping\State\STEP_SHIPPING
const STEP_SHIPPING
Definition:
State.php:20