Skip to content

Commit 4f5ee43

Browse files
committed
Merge branch 'patch-3' of github.com:pykettk/magento2 into 2.4-develop-prs
2 parents 3a26af4 + 9fcf910 commit 4f5ee43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/Checkout/Controller/Cart/EstimatePost.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
namespace Magento\Checkout\Controller\Cart;
77

88
use Magento\Framework;
9+
use Magento\Framework\App\Action\HttpPostActionInterface;
910
use Magento\Checkout\Model\Cart as CustomerCart;
1011

11-
class EstimatePost extends \Magento\Checkout\Controller\Cart
12+
class EstimatePost extends \Magento\Checkout\Controller\Cart implements HttpPostActionInterface
1213
{
1314
/**
1415
* @var \Magento\Quote\Api\CartRepositoryInterface
@@ -63,9 +64,7 @@ public function execute()
6364
->setCity($city)
6465
->setPostcode($postcode)
6566
->setRegionId($regionId)
66-
->setRegion($region)
67-
->setCollectShippingRates(true);
68-
$this->quoteRepository->save($this->cart->getQuote());
67+
->setRegion($region);
6968
$this->cart->save();
7069
return $this->_goBack();
7170
}

0 commit comments

Comments
 (0)