Skip to content

Commit 5420935

Browse files
ENGCOM-3462: If stock is bellow OutOfStock Threshold, a negative qty 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
2 parents 877bffd + 303698f commit 5420935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Block/Stockqty/AbstractStockqty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function getPlaceholderId()
131131
*/
132132
public function isMsgVisible()
133133
{
134-
return $this->getStockQty() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
134+
return $this->getStockQty() > 0 && $this->getStockQtyLeft() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)