This commit is contained in:
rahulshukla-home 2020-05-11 14:51:06 +05:30
parent 9fb5d2f75e
commit 1ddc2b42d7
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}