Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EstimateUpdatePost.php
Go to the documentation of this file.
1 <?php
8 
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 }
execute()
_goBack($backUrl=null)
Definition: Cart.php:73
$code
Definition: info.phtml:12