Skip to content

Commit

Permalink
ENGCOM-3462: If stock is bellow OutOfStock Threshold, a negative qty …
Browse files Browse the repository at this point in the history
…is displayed in Product List Page #19206

 - Merge Pull Request #19206 from khodu/magento2-1:patch-9130
 - Merged commits:
   1. cc6aaa3
   2. 3ba9281
   3. dd965b9
   4. 303698f
  • Loading branch information
magento-engcom-team committed Nov 14, 2018
2 parents 877bffd + 303698f commit 5420935
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getPlaceholderId()
*/
public function isMsgVisible()
{
return $this->getStockQty() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
return $this->getStockQty() > 0 && $this->getStockQtyLeft() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
}

/**
Expand Down

0 comments on commit 5420935

Please sign in to comment.