Skip to content

Commit 408789f

Browse files
authored
requestShippingRates: set quote ID as given by the store manager and not as given by the order itself
Because of the issue #12889 this particalur line was added as a "fix", setting the store id for the quote as given by the quote object itself. This lead to the standard shipping method's name shown in the cart view totals and shipping rate listing in the checkout to be shown as given by the store view, where the last product was added. Can be reproduce, if at least two store views, each with a different language and languae specific naming of shipping rates, for one website are given. Add a product in one store view, switch to another language and go the cart view. This change should still solve the problem described in the issue #12889 and don't mess up the labeling of the shipping rates shown in checkout for websites with multilanguage store views.
1 parent 1804146 commit 408789f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ public function requestShippingRates(\Magento\Quote\Model\Quote\Item\AbstractIte
10021002
/**
10031003
* Store and website identifiers specified from StoreManager
10041004
*/
1005-
$request->setQuoteStoreId($this->getQuote()->getStoreId());
1005+
$request->setQuoteStoreId($this->storeManager->getStore()->getId());
10061006
$request->setStoreId($this->storeManager->getStore()->getId());
10071007
$request->setWebsiteId($this->storeManager->getWebsite()->getId());
10081008
$request->setFreeShipping($this->getFreeShipping());

0 commit comments

Comments
 (0)