File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ public function __construct(ScopeConfigInterface $config)
35
35
*/
36
36
public function isEnabled (): bool
37
37
{
38
- //return (bool)$this->config->getValue(self::XML_PATH_INVENTORY_CHECK_ENABLED);
39
- return false ;
38
+ return (bool )$ this ->config ->getValue (self ::XML_PATH_INVENTORY_CHECK_ENABLED );
40
39
}
41
40
}
Original file line number Diff line number Diff line change 13
13
<field id =" enable_inventory_check" translate =" label" type =" select" sortOrder =" 60" showInDefault =" 1" canRestore =" 1" >
14
14
<label > Enable Inventory Check On Cart Load</label >
15
15
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
16
+ <comment >If you disable inventory check, some product out of stock scenarios may fail</comment >
16
17
</field >
17
18
</group >
18
19
</section >
You can’t perform that action at this time.
0 commit comments