我想仅向特定客户群显示付款方式,因此我想在后端付款方式中添加一个配置字段。我试图在我的自定义模块中覆盖 Mage_Payment system.xml:
MyNamespace_OverwriteCfg.xml
<config>
<modules>
<MyNamespace_OverwriteCfg>
<active>true</active>
<codePool>local</codePool>
</MyNamespace_OverwriteCfg>
</modules>
</config>
系统.xml:
<config>
<sections>
<payment>
<groups>
<invoice>
<fields>
<specificgroup translate="label">
<label>Payment on specific customer groups</label>
<frontend_type>multiselect</frontend_type>
<sort_order>51</sort_order>
<source_model>adminhtml/system_config_source_customer_group</source_model>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</specificgroup>
</fields>
</invoice>
</groups>
</payment>
</sections>
</config>
如果我在支付核心 system.xml 中添加它,它可以正常工作,但我不会编辑核心文件,但覆盖不起作用。