Magento EE 1.11:
我想在Magento 后端中隐藏一些过时的付款方式,以便在选择
时,任何人(甚至是管理员)都无法看到它们System -> Configuration -> Sales -> Payment Methods
为此,我通常会在system.xml
中覆盖不需要的付款方式,如下所示:
<config>
<sections>
<payment>
<groups>
<checkmo>
<show_in_default>0</show_in_default>
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
</checkmo>
</groups>
</payment>
</sections>
</config>
清除缓存,etvoilà,方法已经消失。
今天我第一次尝试使用付款方式pbridge
和pbridge_ogone_direct
执行相同的操作,但是使用这些付款方式我的标准隐藏方法失败了。
这两种付款方式仍然显示在该部分中并且可配置。即使我通过系统禁用整个Enterprise_Pbridge
模块,它们仍然可以配置 - &gt;配置 - &gt;高级。
所有缓存都被禁用并被清除了几次。
任何人都知道为什么会发生这种情况或如何隐藏这些无赖?
答案 0 :(得分:1)
您可以使用system.xml文件创建一个模块,并将您的模块声明为依赖于Enterprise_Pbridge(假设它是正确的modules
值):
<?xml version="1.0" ?>
<!-- module decl. in app/etc/modules -->
<config>
<modules>
<Your_Module>
<active>true</active>
<codePool>local</codePool>
<depends>
<Enterprise_Pbridge />
</depends>
</Your_Module>
</modules>
</config>
您还可以通过将其活动标志更改为false来直接禁用Enterprise_Pbridge模块 - 最安全的方法当然是创建一个模块注册文件,该文件在您尝试禁用的模块声明文件之后按字母顺序加载,例如。 app/etc/modules/Z.xml
具有以下xpath:config/modules/Enterprise_Pbridge/active
。