Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 3ef26a8

Browse files
committed
[Fix bug] Add out of stock products.
1 parent e4560c4 commit 3ef26a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Model/Sitemap.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ public function _getProductCollection($storeId)
393393
if ($this->_coreProductFactory->create()->load($item->getId())->getData('mp_exclude_sitemap') == 1) {
394394
continue;
395395
}
396-
if ($this->stockItem->load($item->getId(), 'product_id')->getIsInStock() == 0) {
397-
continue;
398-
}
396+
399397
$collection[] = $item;
400398
}
401399

0 commit comments

Comments
 (0)