diff --git a/packages/Webkul/Product/src/Type/Simple.php b/packages/Webkul/Product/src/Type/Simple.php index e7620fdd5..2c0a90e5a 100644 --- a/packages/Webkul/Product/src/Type/Simple.php +++ b/packages/Webkul/Product/src/Type/Simple.php @@ -56,7 +56,9 @@ class Simple extends AbstractType public function haveSufficientQuantity($qty) { $backorders = core()->getConfigData('catalog.inventory.stock_options.backorders'); - + + $backorders = ! is_null ($backorders) ? $backorders : false; + return $qty <= $this->totalQuantity() ? true : $backorders; } } \ No newline at end of file