Sometimes I want to add custom fields in magento admin configuration section through custom module and I want set the default value which post I have called as “Default value for admin field of custom module in magento”.For that I need to have a system.xml file having all the fileds inside my custom groups of custom section.Suppose, I have the following system.xml file. System.xml file is necessary to add admin configuration options.Here I have set my configuration section under catalog tab.

/app/code/local/NameSpace/ModuleName/etc/system.xml

.Set yout default value for configuration filed in magento.

Now, to add Default value for admin field of custom module in magento, you need to write the following in config.xml file of your module.

/app/code/local/NameSpace/ModuleName/etc/config.xml

Default value for admin field of custom module in magento
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *