Skip to content

Commit 5ee8b54

Browse files
Manjusha.SManjusha.S
authored andcommitted
resolved conflicts
1 parent 232c11b commit 5ee8b54

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

app/code/Magento/Multishipping/Model/Cart/MultishippingClearItemAddress.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Magento\Checkout\Controller\Cart;
1111
use Magento\Checkout\Controller\Sidebar\UpdateItemQty;
1212
use Magento\Checkout\Model\Session;
13+
<<<<<<< HEAD
1314
use Magento\Checkout\Model\Cart as CartModel;
15+
=======
16+
>>>>>>> 50b054ffc2e (Resolved conflicts)
1417
use Magento\Customer\Api\AddressRepositoryInterface;
1518
use Magento\Framework\App\RequestInterface;
1619
use Magento\Framework\Exception\LocalizedException;
@@ -20,8 +23,11 @@
2023

2124
/**
2225
* Cleans shipping addresses and item assignments after MultiShipping flow
26+
<<<<<<< HEAD
2327
*
2428
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
29+
=======
30+
>>>>>>> 50b054ffc2e (Resolved conflicts)
2531
*/
2632
class MultishippingClearItemAddress
2733
{
@@ -46,29 +52,42 @@ class MultishippingClearItemAddress
4652
private $disableMultishipping;
4753

4854
/**
55+
<<<<<<< HEAD
4956
* @var CartModel
5057
*/
5158
private $cartmodel;
5259

5360
/**
61+
=======
62+
>>>>>>> 50b054ffc2e (Resolved conflicts)
5463
* @param CartRepositoryInterface $cartRepository
5564
* @param Session $checkoutSession
5665
* @param AddressRepositoryInterface $addressRepository
5766
* @param DisableMultishipping $disableMultishipping
67+
<<<<<<< HEAD
5868
* @param CartModel $cartmodel
69+
=======
70+
>>>>>>> 50b054ffc2e (Resolved conflicts)
5971
*/
6072
public function __construct(
6173
CartRepositoryInterface $cartRepository,
6274
Session $checkoutSession,
6375
AddressRepositoryInterface $addressRepository,
76+
<<<<<<< HEAD
6477
DisableMultishipping $disableMultishipping,
6578
CartModel $cartmodel
79+
=======
80+
DisableMultishipping $disableMultishipping
81+
>>>>>>> 50b054ffc2e (Resolved conflicts)
6682
) {
6783
$this->cartRepository = $cartRepository;
6884
$this->checkoutSession = $checkoutSession;
6985
$this->addressRepository = $addressRepository;
7086
$this->disableMultishipping = $disableMultishipping;
87+
<<<<<<< HEAD
7188
$this->cartmodel = $cartmodel;
89+
=======
90+
>>>>>>> 50b054ffc2e (Resolved conflicts)
7291
}
7392

7493
/**
@@ -101,8 +120,14 @@ public function clearAddressItem($subject, $request)
101120
}
102121
$this->cartRepository->save($quote);
103122
if ($subject instanceof UpdateItemQty) {
123+
<<<<<<< HEAD
104124
$quote = $this->cartRepository->get($quote->getId());
105125
$this->cartmodel->setQuote($quote);
126+
=======
127+
$quote = $this->checkoutSession->getQuote();
128+
$quote->setTotalsCollectedFlag(false);
129+
$this->cartRepository->save($quote);
130+
>>>>>>> 50b054ffc2e (Resolved conflicts)
106131
}
107132
} elseif ($this->disableMultishipping->execute($quote) && $this->isVirtualItemInQuote($quote)) {
108133
$quote->setTotalsCollectedFlag(false);

0 commit comments

Comments
 (0)