gpt4 book ai didi

magento - 如何在 Magento 中禁用前端注册

转载 作者:行者123 更新时间:2023-12-04 01:38:58 26 4
gpt4 key购买 nike

如题。

但是,用户仍然可以登录到前端,而管理员只能在后端创建用户帐户。

最佳答案

行。我搞定了。引用Hugues Solution,有两处修改:

  • 添加 app\etc\modules\Mycompany_All.xml

    <?xml version="1.0"?>
    <config>
    <modules>
    <Mycompany_Registrationremove>
    <active>true</active>
    <codePool>local</codePool>
    </Mycompany_Registrationremove>
    </modules>
    </config>
  • 修改文件:app/code/local/Mycompany/Registrationremove/etc/config.xml

    <?xml version="1.0"?>
    <config>
    <modules>
    <Mycompany_Registrationremove>
    <version>0.1.0</version>
    </Mycompany_Registrationremove>
    </modules>
    <global>
    <rewrite>
    <mycompany_registrationremove_customer_account_create>
    <from><![CDATA[#^/customer/account/create/$#]]></from>
    <to>/registrationremove/customer_account/create</to>
    </mycompany_registrationremove_customer_account_create>
    <mycompany_registrationremove_customer_account_createPost>
    <from><![CDATA[#^/customer/account/createPost/$#]]></from>
    <to>/registrationremove/customer_account/createPost</to>
    </mycompany_registrationremove_customer_account_createPost>
    </rewrite>
    </global>
    <frontend>
    <routers>
    <mycompany_registrationremove>
    <use>standard</use>
    <args>
    <module>Mycompany_Registrationremove</module>
    <frontName>registrationremove</frontName>
    </args>
    </mycompany_registrationremove>
    </routers>
    </frontend>
    </config>
  • 关于magento - 如何在 Magento 中禁用前端注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2959131/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com