Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit c261156

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

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
@@ -89,13 +89,13 @@ protected function _construct()
8989
}
9090

9191
/**
92-
* Retrieve store Id (From Quote)
92+
* Retrieve store Id (From Quote)
9393
*
9494
* @return int
9595
*/
9696
public function getStoreId()
9797
{
98-
return (int)$this->_quote->getStoreId();
98+
return (int)$this->_productCollectionFactory->create()->getStoreId();
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)