我想只向特定的客户群显示付款方式,因此我想在后端付款方式中添加一个配置字段。我尝试在我的自定义模块中覆盖Mage_Payment system.xml:
MyNamespace_OverwriteCfg.xml
<config>
<modules>
<MyNamespace_OverwriteCfg>
<active>true</active>
<codePool>local</codePool>
</MyNamespace_OverwriteCfg>
</modules>
</config>system.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中,它工作得很好,但我不会编辑核心文件,但覆盖将不起作用。
发布于 2013-03-07 18:00:19
<config>
<sections>
<payment>
<groups>
<cashondelivery> <!--Here was the mistake -->
<fields>
//...
</fields>
</cashondelivery> <!--Here was the mistake -->
</groups>
</payment>
</sections>
</config>https://stackoverflow.com/questions/15266817
复制相似问题