Change Maximum Qty Allowed in Shopping Cart programmaticaly
-
02-10-2020 - |
Question
When I go to System -> Configuration -> Catalog -> Inventory -> Product Stock Options, I can change Maximum Qty Allowed in Shopping Cart.
I need to do that in setup script. How to do that via setup script? I tried setStoreConfig but I probably used wrong node and it is not working.
Solution
Mage::getConfig()->saveConfig('cataloginventory/item_options/max_sale_qty', '10000', 'default', 0);
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange