Pergunta

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.

Foi útil?

Solução

Mage::getConfig()->saveConfig('cataloginventory/item_options/max_sale_qty', '10000', 'default', 0);
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange
scroll top