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 9de77c9 commit f1b275dCopy full SHA for f1b275d
app/code/Magento/Quote/Model/Config.php
@@ -35,7 +35,6 @@ public function __construct(ScopeConfigInterface $config)
35
*/
36
public function isEnabled(): bool
37
{
38
- #return (bool)$this->config->getValue(self::XML_PATH_INVENTORY_CHECK_ENABLED);
39
- return false;
+ return (bool)$this->config->getValue(self::XML_PATH_INVENTORY_CHECK_ENABLED);
40
}
41
app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php
@@ -293,8 +293,6 @@ protected function _assignProducts(): self
293
$item->setQtyOptions($qtyOptions)->setProduct($product);
294
if ($this->config->isEnabled()) {
295
$item->checkData();
296
- } else {
297
- $item->setQty((int)$item->getQty());
298
299
300
0 commit comments