Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 6ecd4fc

Browse files
authored
ENGCOM-3462: If stock is bellow OutOfStock Threshold, a negative qty is displayed in Product List Page #19206
2 parents 71e7b2f + 5420935 commit 6ecd4fc

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)