We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78e16d7 + f1636c0 commit 28d25e0Copy full SHA for 28d25e0
app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php
@@ -323,6 +323,10 @@ private function addTierPriceData(ProductCollection $productCollection)
323
*/
324
private function removeItemsWithAbsentProducts()
325
{
326
+ if (count($this->_productIds) === 0) {
327
+ return;
328
+ }
329
+
330
$productCollection = $this->_productCollectionFactory->create()->addIdFilter($this->_productIds);
331
$existingProductsIds = $productCollection->getAllIds();
332
$absentProductsIds = array_diff($this->_productIds, $existingProductsIds);
0 commit comments