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 856def3 + eb4f650 commit 9ab5045Copy full SHA for 9ab5045
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