如何在Magento中编辑产品页面模板 [英] How to edit product page template in Magento

查看:49
本文介绍了如何在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.

什么是模板路径提示

模板路径提示是哪个就趴在你的店铺前端顶部的小标签.这些小标签使您可以查看特定元素的代码在文件结构中的确切存储位置.底线模板路径提示可为您节省很多挫败感.

如何打开模板路径提示?

  1. 打开管理控制台
  2. 打开系统标签并选择配置
  3. 从当前配置范围"下拉列表中选择主要网站"或网站名称(默认配置)"
  4. 在左侧栏中选择开发
  5. 打开调试下拉
  6. 设置模板路径的提示,是
  7. 单击上保存配置保存下来的更改

这篇关于如何在Magento中编辑产品页面模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆