如何在 Magento 中编辑产品页面模板 [英] How to edit product page template in Magento
问题描述
我想在我的 Magento 站点上自定义产品页面模板文件.我找不到自定义产品页面模板的方法.任何人都请指定确切的文件和该文件的位置.我使用的是 Magento 版本 1.7.0.2
I want to customize the product page template file on my Magento site. I couldn't find a way to customize my product page template. Anybody please specify the exact file and the location of that file. I am using Magento version 1.7.0.2
推荐答案
您可以在以下目录中找到所有与产品视图相关的模板.
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.
什么是模板路径提示
模板路径提示是位于商店前端顶部的小标签.这些小标签使您能够查看特定元素的代码在文件结构中的确切存储位置.底线模板路径提示为您节省了很多挫折.
如何开启模板路径提示?
- 打开管理控制面板
- 打开系统标签并选择配置
- 从当前配置范围下拉菜单中选择主网站或网站名称(非默认配置)
- 在左侧边栏中选择开发人员
- 打开调试下拉菜单
- 将模板路径提示设置为是
- 点击保存配置以保存您的更改
这篇关于如何在 Magento 中编辑产品页面模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!