Php 如何在magento的配置中添加新字段(从核心扩展)
Hye,我想问一下,如何在配置中添加一个新字段从核心扩展。示例我想在系统->配置->常规->存储信息中放置一个新的字段调用测试 我知道是错的,但这是我使用的文件:- MageCustom/GST/etc/system.xmlPhp 如何在magento的配置中添加新字段(从核心扩展),php,magento,Php,Magento,Hye,我想问一下,如何在配置中添加一个新字段从核心扩展。示例我想在系统->配置->常规->存储信息中放置一个新的字段调用测试 我知道是错的,但这是我使用的文件:- MageCustom/GST/etc/system.xml <config> <tabs> <customer translate="label" module="customer"> <label>dd</label> <so
<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>
dd
300
公司名称
文本
这将包含在事务性电子邮件中。
31
1.
1.
1.
商品及服务税编号
文本
这将包含在事务性电子邮件中。
32
1.
1.
1.
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>
一般的
遵循此url,您可能会有想法。
按照这个网址,你可能会得到的想法