2016-04-04 3 views
1

Hye, ich möchte fragen, wie man ein neues Feld in der Konfiguration hinzufügt, das vom Kern verlängert wird. Beispiel Ich möchte einen neuen Feldaufruf Test in System-> Konfiguration-> Allgemein-> Informationen speichern.wie man neues Feld in der Konfiguration in Magento hinzufügt (sich vom Kern aus erstreckt)

ich weiß, ist falsch, aber das ist die Datei, die ich benutze: -

MageCustom/GST/etc/system.xml

<config> 
<tabs> 
    <customer translate="label" module="customer"> 
     <label>dd</label> 
     <sort_order>300</sort_order> 
    </customer> 
</tabs> 
<sections> 
    <customer translate="label" module="customer"> 
     <general> 
      <groups> 
       <store_information> 
        <fields> 
         <company_name> 
          <label>Company Name</label> 
          <frontend_type>text</frontend_type> 
          <comment>This will be included in Transactional Emails.</comment> 
          <sort_order>31</sort_order> 
          <show_in_default>1</show_in_default> 
          <show_in_website>1</show_in_website> 
          <show_in_store>1</show_in_store>      
         </company_name> 
        </fields> 
        <fields> 
         <gst_no> 
          <label>GST No</label> 
          <frontend_type>text</frontend_type> 
          <comment>This will be included in Transactional Emails.</comment> 
          <sort_order>32</sort_order> 
          <show_in_default>1</show_in_default> 
          <show_in_website>1</show_in_website> 
          <show_in_store>1</show_in_store>      
         </gst_no> 
        </fields> 
       </store_information> 
      </groups> 
     </general> 
    </customer> 
</sections> 

MageCustom/GST/etc/config.xml

<config> 
<adminhtml> 
    <acl> 
     <resources> 
      <admin> 
       <children> 
        <system> 
         <children> 
          <config> 
           <children> 
            <customer> 
             <title>General</title> 
            </customer> 
           </children> 
          </config> 
         </children> 
        </system> 
       </children> 
      </admin> 
     </resources> 
    </acl> 
</adminhtml> 

Antwort

Verwandte Themen