سؤال

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.

هل كانت مفيدة؟

المحلول

Mage::getConfig()->saveConfig('cataloginventory/item_options/max_sale_qty', '10000', 'default', 0);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top