File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/Checkout/Controller/Cart Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Checkout \Controller \Cart ;
7
7
8
8
use Magento \Framework ;
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
9
10
use Magento \Checkout \Model \Cart as CustomerCart ;
10
11
11
- class EstimatePost extends \Magento \Checkout \Controller \Cart
12
+ class EstimatePost extends \Magento \Checkout \Controller \Cart implements HttpPostActionInterface
12
13
{
13
14
/**
14
15
* @var \Magento\Quote\Api\CartRepositoryInterface
@@ -63,9 +64,7 @@ public function execute()
63
64
->setCity ($ city )
64
65
->setPostcode ($ postcode )
65
66
->setRegionId ($ regionId )
66
- ->setRegion ($ region )
67
- ->setCollectShippingRates (true );
68
- $ this ->quoteRepository ->save ($ this ->cart ->getQuote ());
67
+ ->setRegion ($ region );
69
68
$ this ->cart ->save ();
70
69
return $ this ->_goBack ();
71
70
}
You can’t perform that action at this time.
0 commit comments