Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix stock minimum quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
williankeller committed May 31, 2019
1 parent 9339719 commit adab7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ExtensionAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function quantityAndStockStatus($attributes)
if ($this->helperData->getQtyType() === 'qty') {
return $attributes->getStockItem()->getQty();
}
if ($this->helperData->getBackorder() && $attributes->getStockItem()->getQty() < 0) {
if ($this->helperData->getBackorder() && $attributes->getStockItem()->getQty() < 1) {
return 'out';
}
return ($attributes->getStockItem()->getIsInStock()) ? 'in' : 'out';
Expand Down

0 comments on commit adab7e0

Please sign in to comment.