Magento access to config store


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $lifetimes = Mage::getConfig()->getStoresConfigByPath('checkout/cart/delete_quote_after');
  2.  
  3. or
  4.  
  5. $config = Mage::getStoreConfig('section_name/group/field'); //value
  6. $config = Mage::getStoreConfig('section_name/group'); //array

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.