Issue #3041
This commit is contained in:
parent
9fb5d2f75e
commit
1ddc2b42d7
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue