Magento 1

时间:2017-12-13 10:53:20

标签: php magento

我刚刚在Magento网站上安装了一个新模块。我创建了一个新的用户角色组并授予使用此模块的权限。检查权限并保存后,它不起作用,除此之外,权限仍未选中。

我在网上搜索,问题可能在config.xml中。

config.xml中有一部分代码:

     <menu>
        <customer>                
            <children>                
                <customerproducts  module="customer">
                    <title>Customer Products Settings</title>
                    <sort_order>1000</sort_order>
                    <action>adminhtml/system_config/edit/section/customerspecificproduct</action>
                </customerproducts>
            </children>
        </customer>
    </menu>
    <acl>
        <resources>
            <all>
                <title>Allow Everything</title>
            </all>
            <admin>
                <children>
                    <Mconnect_Csproduct>
                        <title>csproduct Module</title>
                        <sort_order>10</sort_order>
                    </Mconnect_Csproduct>
                     <system>
                        <children>
                            <config>
                                <children>
                                    <customerspecificproduct translate="title" module="csproduct">
                                        <title>Mconnect Customer Specific Product</title>
                                    </customerspecificproduct>
                                </children>
                            </config>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>

有谁能告诉我这段代码中的问题在哪里? 谢谢!

1 个答案:

答案 0 :(得分:0)

替换此代码

<customerspecificproduct translate="title" module="csproduct">
        <title>Mconnect Customer Specific Product</title>
</customerspecificproduct>

<customerproducts translate="title" module="csproduct">
         <title>Mconnect Customer Specific Product</title>
</customerproducts>