Magento 1.9 – Add Field in Admin Panel System Configuration General Tab

admince-1.9.1.0configurationmagento-1.9system.xml

How can I add a field in admin panel > system > configuration > General Tab ?

Please specify Path for file in Magento 1.9

I am using code below but no success:

<sections>
    <custom translate="label" module="custom">
        <label>Custom</label>
        <tab>general</tab>
        <sort_order>60</sort_order>
        <show_in_default>1</show_in_default>
        <show_in_website>1</show_in_website>
        <show_in_store>1</show_in_store>
    <groups>
        <store_number translate="label">
                <label>Store Customer Care Number</label>
                <frontend_type>text</frontend_type>
                <sort_order>100</sort_order>
                <show_in_default>1</show_in_default>
                <show_in_website>1</show_in_website>
                <show_in_store>1</show_in_store>
                <fields>
                    <contact_info translate="label">
                        <label>Store Customer Care Number</label>
                        <frontend_type>text</frontend_type>                    
                        <sort_order>2</sort_order>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </contact_info>                        
                </fields>
         </store_number>
    </groups>
    </custom>
</sections>

Best Answer

In your module add below code:

In file app/code/local/Namesapce/Modulename/etc/system.xml

 <general>            
       <groups>
            <test translate="label">
                    <label>Test Options</label>
                    <frontend_type>text</frontend_type>
                    <sort_order>1</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <enable translate="label">
                            <label>Enable</label>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>                       
                            <sort_order>2</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                            <can_be_empty>1</can_be_empty>
                        </enable>                        
                    </fields>
                </test>
        </groups>
   </general>