【问题标题】:Magento: remove customer accounts functionaltyMagento:删除客户帐户功能
【发布时间】:2015-05-01 10:30:33
【问题描述】:

Magento 版本 1.9.1.0

我想完全删除客户帐户创建、帐户页面、登录页面等所有内容。请指教。

【问题讨论】:

  • 在管理面板中禁用 Mage_Customer 模块
  • 做到了,谢谢!但我仍然在主页上看到“帐户”按钮。
  • 不,也清除了它。它仍在显示。

标签: magento magento-1.9 magento-1.9.1


【解决方案1】:

我会这样做:在这样的布局下创建或编辑主题的 local.xml 文件:

<default>
    <reference name="top.links">
        <action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action>
    </reference>
</default>

这将删除“我的帐户”顶部链接。

【讨论】:

  • 我还查看了 customer.xml 并从那里获取帐户链接的代码并将其添加到 local.xml 文件中,但它也不起作用。这是我的代码:&lt;reference name="top.links"&gt; &lt;action method="removeLinkByUrl" translate="label title" module="customer"&gt;&lt;label&gt;My Account&lt;/label&gt;&lt;url helper="customer/getAccountUrl"/&gt;&lt;title&gt;My Account&lt;/title&gt;&lt;prepare/&gt;&lt;urlParams/&gt;&lt;position&gt;10&lt;/position&gt;&lt;/action&gt; &lt;/reference&gt;
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-11-04
  • 1970-01-01
  • 2012-04-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多