Skip to content

Commit 199a02d

Browse files
committed
ACP2E-778: REST API: Product names in cart always use default store view values
1 parent 84c01e2 commit 199a02d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Quote/Model/Quote/Plugin/UpdateQuoteStoreId.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Quote\Model\Quote;
1111
use Magento\Store\Api\Data\StoreInterface;
1212
use Magento\Store\Model\StoreManagerInterface;
13-
use Magento\Framework\Webapi\Request;
13+
use Magento\Framework\App\Request\Http as Request;
1414

1515
/**
1616
* Updates quote store id.
@@ -74,6 +74,7 @@ public function afterLoadByCustomer(Quote $subject, Quote $result): Quote
7474
private function getStore(string $requestPath): ?StoreInterface
7575
{
7676
$pathParts = explode('/', trim($requestPath, '/'));
77+
array_shift($pathParts);
7778
$storeCode = current($pathParts);
7879
$stores = $this->storeManager->getStores(false, true);
7980

0 commit comments

Comments
 (0)