修改 Magento 的默认帐户仪表板
下编辑 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在编辑哪个主题?默认安装的有很多,显示的那个是在“系统>配置>设计”中设置的。如果您正在编辑
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
您应该转到app/design/frontend/base/default/template,然后查找您不想在个人帐户仪表板中显示的 xml 文件。例如:要从仪表板中删除“我的可下载产品”,您应该编辑downloadable.xml,并查找以下代码:
然后,执行
以下操作,您将从中删除“我的可下载产品”链接仪表板。
希望有帮助
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:
Then, do
This way you will remove the "my downloadble products" link from the dashboard.
Hope that it helps