We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f66c4 commit 3fc107aCopy full SHA for 3fc107a
app/code/Magento/Catalog/Model/Product.php
@@ -972,7 +972,7 @@ public function afterSave()
972
public function setQty($qty)
973
{
974
if ($this->getData('qty') != $qty) {
975
- $this->setData('qty', $qty);
+ $this->setData('qty', (float)$qty);
976
$this->reloadPriceInfo();
977
}
978
return $this;
@@ -985,7 +985,7 @@ public function setQty($qty)
985
*/
986
public function getQty()
987
988
- return $this->getData('qty');
+ return (float)$this->getData('qty');
989
990
991
/**
0 commit comments