Skip to content

Commit e554f12

Browse files
committed
ACP2E-778: REST API: Product names in cart always use default store view values
1 parent 96faea7 commit e554f12

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Quote/Model/ResourceModel

1 file changed

+5
-0
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ public function loadByCustomerId($quote, $customerId)
104104
$data = $connection->fetchRow($select);
105105

106106
if ($data) {
107+
//Prevent current Store Id to be overridden
108+
if ($quote->getStoreId() !== null) {
109+
unset($data['store_id']);
110+
}
111+
107112
$quote->setData($data);
108113
$quote->setOrigData();
109114
}

0 commit comments

Comments
 (0)