Return to Snippet

Revision: 49509
at July 23, 2011 01:41 by necode


Initial Code
$lifetimes = Mage::getConfig()->getStoresConfigByPath('checkout/cart/delete_quote_after');

or

$config = Mage::getStoreConfig('section_name/group/field'); //value
$config = Mage::getStoreConfig('section_name/group'); //array

Initial URL
http://stackoverflow.com/questions/4874171/get-config-data-to-javascript-file-magento

Initial Description
Save config: http://inchoo.net/ecommerce/magento/how-to-programmatically-change-magentos-core-config-data/
http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_add_a_custom_module_for_custom_admin_config_options

Initial Title
Magento access to config store

Initial Tags
magento

Initial Language
PHP