修改 Magento 的默认帐户仪表板

发布于 2024-09-18 08:23:33 字数 109 浏览 3 评论 0原文

下编辑 phtml 文件(dashboard.phtml)

我尝试在template > 客户>帐户

,但帐户仪表板保持不变。我缺少什么?

谢谢

i tried editing the phtml files (dashboard.phtml) under

template > customer > account

but the account dashboard stays the same. what am i missing?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迷乱花海 2024-09-25 08:23:33

您正在编辑哪个主题?默认安装的有很多,显示的那个是在“系统>配置>设计”中设置的。如果您正在编辑 app/design/frontend/base/default/template,请确保设计中没有任何条目。

另外,请确保在开发时在“系统”>“缓存管理”中禁用缓存,但在生产中将其打开!

京东

Which theme were you editing? There are numerous installed by default, and the one which is displayed is set in System>Config>Design. If you're editing app/design/frontend/base/default/template, then make sure you don't have any entry in the Design.

Also, make sure you disable the cache in System>Cache Management while doing your development, but turn it on in production!

JD

等风来 2024-09-25 08:23:33

您应该转到app/design/frontend/base/default/template,然后查找您不想在个人帐户仪表板中显示的 xml 文件。例如:要从仪表板中删除“我的可下载产品”,您应该编辑downloadable.xml,并查找以下代码:

<reference name="customer_account_navigation">
      <action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>
    </reference>

然后,执行

<!--<action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>-->

以下操作,您将从中删除“我的可下载产品”链接仪表板。

希望有帮助

You should go to app/design/frontend/base/default/template, and then look up for the xml file you dont want to show in the personal account dashboard. For instance: to remove "my downloadble products" from the dashboard, you should edit downloadable.xml, and look for this code:

<reference name="customer_account_navigation">
      <action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>
    </reference>

Then, do

<!--<action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>-->

This way you will remove the "my downloadble products" link from the dashboard.

Hope that it helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文