Skip to content

Commit ebe7c1b

Browse files
nrostrow-metaNoah Ostrowski
andauthored
Adding check for another out of stock exception message (#623)
Co-authored-by: Noah Ostrowski <[email protected]>
1 parent d32c2cc commit ebe7c1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Meta/Sales/Helper/CommerceHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ public function pullOrders(int $storeId, $cursorAfter = false)
187187
}
188188
$orderIds[$magentoOrder->getIncrementId()] = $facebookOrderId;
189189
} catch (Exception $e) {
190-
if ($e->getMessage() === 'The requested qty is not available') {
190+
if ($e->getMessage() === 'The requested qty is not available'
191+
|| $e->getMessage() === 'There are no source items with the in stock status') {
191192
$this->cancelMetaOutOfStockOrder($storeId, $facebookOrderId);
192193
} else {
193194
$this->exceptions[] = $e->getMessage();

0 commit comments

Comments
 (0)