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.

Was it helpful?

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
scroll top