Skip to content

Commit 9d3be73

Browse files
committed
resolve Error While Trying To Load Quote Item Collection Using Magento\Quote\Model\ResourceModel\QuoteItem\Collection::getItems()
1 parent 08f0056 commit 9d3be73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ protected function _construct()
9595
}
9696

9797
/**
98-
* Retrieve store Id (From Quote)
98+
* Retrieve store Id (From Quote)
9999
*
100100
* @return int
101101
*/
102102
public function getStoreId()
103103
{
104-
return (int)$this->_quote->getStoreId();
104+
return (int)$this->_productCollectionFactory->create()->getStoreId();
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)