且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Magento 中编辑产品页面模板

更新时间:2023-11-29 23:03:58

您可以在以下目录中找到所有与产品视图相关的模板.

You can find all the templates related to product view in the following directory.

Magento/app/design/frontend/default/your_theme/template/catalog/product/

您可以使用模板路径提示自定义更多(如果您想知道该特定块的模板)

You can customize more (if you want to know which template is for that particular block) with template path hints

http://www.pauldonnelly.net/magento-turning-on-template-path-hints/

更新:

复制上述链接的内容,以防链接不再存在.

Copying content from the above link, in case the link may no longer exist.

什么是模板路径提示

模板路径提示是位于商店前端顶部的小标签.这些小标签使您能够查看特定元素的代码在文件结构中的确切存储位置.底线模板路径提示为您节省了很多挫折.

如何开启模板路径提示?

  1. 打开管理控制面板
  2. 打开系统标签并选择配置
  3. 从当前配置范围下拉菜单中选择主网站或网站名称(非默认配置)
  4. 在左侧边栏中选择开发人员
  5. 打开调试下拉菜单
  6. 将模板路径提示设置为是
  7. 点击保存配置以保存您的更改