Skip to content

Commit 5442cca

Browse files
Manjusha.SManjusha.S
authored andcommitted
resolved conflicts
1 parent 5ee8b54 commit 5442cca

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
use Magento\Checkout\Controller\Cart;
1111
use Magento\Checkout\Controller\Sidebar\UpdateItemQty;
1212
use Magento\Checkout\Model\Session;
13-
<<<<<<< HEAD
1413
use Magento\Checkout\Model\Cart as CartModel;
15-
=======
16-
>>>>>>> 50b054ffc2e (Resolved conflicts)
1714
use Magento\Customer\Api\AddressRepositoryInterface;
1815
use Magento\Framework\App\RequestInterface;
1916
use Magento\Framework\Exception\LocalizedException;
@@ -23,11 +20,8 @@
2320

2421
/**
2522
* Cleans shipping addresses and item assignments after MultiShipping flow
26-
<<<<<<< HEAD
2723
*
2824
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
29-
=======
30-
>>>>>>> 50b054ffc2e (Resolved conflicts)
3125
*/
3226
class MultishippingClearItemAddress
3327
{
@@ -52,42 +46,29 @@ class MultishippingClearItemAddress
5246
private $disableMultishipping;
5347

5448
/**
55-
<<<<<<< HEAD
5649
* @var CartModel
5750
*/
5851
private $cartmodel;
5952

6053
/**
61-
=======
62-
>>>>>>> 50b054ffc2e (Resolved conflicts)
6354
* @param CartRepositoryInterface $cartRepository
6455
* @param Session $checkoutSession
6556
* @param AddressRepositoryInterface $addressRepository
6657
* @param DisableMultishipping $disableMultishipping
67-
<<<<<<< HEAD
6858
* @param CartModel $cartmodel
69-
=======
70-
>>>>>>> 50b054ffc2e (Resolved conflicts)
7159
*/
7260
public function __construct(
7361
CartRepositoryInterface $cartRepository,
7462
Session $checkoutSession,
7563
AddressRepositoryInterface $addressRepository,
76-
<<<<<<< HEAD
7764
DisableMultishipping $disableMultishipping,
7865
CartModel $cartmodel
79-
=======
80-
DisableMultishipping $disableMultishipping
81-
>>>>>>> 50b054ffc2e (Resolved conflicts)
8266
) {
8367
$this->cartRepository = $cartRepository;
8468
$this->checkoutSession = $checkoutSession;
8569
$this->addressRepository = $addressRepository;
8670
$this->disableMultishipping = $disableMultishipping;
87-
<<<<<<< HEAD
8871
$this->cartmodel = $cartmodel;
89-
=======
90-
>>>>>>> 50b054ffc2e (Resolved conflicts)
9172
}
9273

9374
/**
@@ -120,14 +101,8 @@ public function clearAddressItem($subject, $request)
120101
}
121102
$this->cartRepository->save($quote);
122103
if ($subject instanceof UpdateItemQty) {
123-
<<<<<<< HEAD
124104
$quote = $this->cartRepository->get($quote->getId());
125105
$this->cartmodel->setQuote($quote);
126-
=======
127-
$quote = $this->checkoutSession->getQuote();
128-
$quote->setTotalsCollectedFlag(false);
129-
$this->cartRepository->save($quote);
130-
>>>>>>> 50b054ffc2e (Resolved conflicts)
131106
}
132107
} elseif ($this->disableMultishipping->execute($quote) && $this->isVirtualItemInQuote($quote)) {
133108
$quote->setTotalsCollectedFlag(false);
@@ -168,4 +143,4 @@ private function isDisableMultishippingRequired(RequestInterface $request, Quote
168143
{
169144
return $request->getActionName() !== "add" && $quote->getIsMultiShipping();
170145
}
171-
}
146+
}

0 commit comments

Comments
 (0)