From 33dcc36b1f5214929f281c5618a31bbc6bded27b Mon Sep 17 00:00:00 2001 From: Bernhard Leers Date: Sun, 1 Oct 2017 11:56:11 +0200 Subject: [PATCH] #7582: use setStoreId after custom load method to given storeId determination precedence to fix payment title translation error in checkout --- app/code/Magento/Quote/Model/QuoteRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Quote/Model/QuoteRepository.php b/app/code/Magento/Quote/Model/QuoteRepository.php index 01c21bbbe50a7..d3967794b300a 100644 --- a/app/code/Magento/Quote/Model/QuoteRepository.php +++ b/app/code/Magento/Quote/Model/QuoteRepository.php @@ -212,7 +212,7 @@ protected function loadQuote($loadMethod, $loadField, $identifier, array $shared if ($sharedStoreIds) { $quote->setSharedStoreIds($sharedStoreIds); } - $quote->setStoreId($this->storeManager->getStore()->getId())->$loadMethod($identifier); + $quote->$loadMethod($identifier)->setStoreId($this->storeManager->getStore()->getId()); if (!$quote->getId()) { throw NoSuchEntityException::singleField($loadField, $identifier); }