diff --git a/Helper/Payment.php b/Helper/Payment.php index 0a217105..82f6a86c 100644 --- a/Helper/Payment.php +++ b/Helper/Payment.php @@ -226,13 +226,13 @@ public function isAffirmAvailableForProduct(Product $product = null) $associatedProducts = $product->getTypeInstance()->getAssociatedProducts($product); foreach ($associatedProducts as $associatedProduct) { $stockItem = $this->stockRegistry->getStockItem($associatedProduct->getId()); - if ($stockItem->getBackorders() && ($stockItem->getQty() < 1)) { + if ($stockItem->getManageStock() && $stockItem->getBackorders() && ($stockItem->getQty() < 1)) { $check = false; } } } else { $stockItem = $this->stockRegistry->getStockItem($product->getId()); - if ($stockItem->getBackorders() && ($stockItem->getQty() < 1)) { + if ($stockItem->getManageStock() && $stockItem->getBackorders() && ($stockItem->getQty() < 1)) { $check = false; } }