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-checkout
Controller
Cart
EstimateUpdatePost.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Controller\Cart
;
8
9
class
EstimateUpdatePost
extends
\Magento\Checkout\Controller\Cart
10
{
14
public
function
execute
()
15
{
16
$code
= (string)$this->
getRequest
()->getParam(
'estimate_method'
);
17
if
(!empty(
$code
)) {
18
$this->cart->getQuote()->getShippingAddress()->setShippingMethod(
$code
)->save();
19
$this->cart->save();
20
}
21
return
$this->
_goBack
();
22
}
23
}
Magento\Checkout\Controller\Cart
Definition:
Cart.php:14
Magento\Checkout\Controller\Cart\EstimateUpdatePost
Definition:
EstimateUpdatePost.php:9
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
Magento\Checkout\Controller\Cart
Magento\Checkout\Controller\Cart\EstimateUpdatePost\execute
execute()
Definition:
EstimateUpdatePost.php:14
Magento\Checkout\Controller\Cart\_goBack
_goBack($backUrl=null)
Definition:
Cart.php:73
$code
$code
Definition:
info.phtml:12