Skip to content

Commit 40fed52

Browse files
committed
ACP2E-2905: [Cloud] Issue of Quote in multi-website architecture
- with test
1 parent c547f64 commit 40fed52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Model/Plugin/RecollectQuoteOnCustomerGroupChange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function collectTotalsForCustomerGlobalScope(Customer|AbstractModel $cus
138138
$allStores = $this->storeManager->getStores();
139139
foreach ($allStores as $store) {
140140
/** @var Quote $quote */
141-
$quote = $this->cartRepository->getActive($store->getId());
141+
$quote = $this->cartRepository->getActiveForCustomer($customer->getId(), [$store->getId()]);
142142
if ($quote) {
143143
$quote->setCustomerGroupId($customer->getGroupId());
144144
$quote->collectTotals();

0 commit comments

Comments
 (0)