如何使用回退方法删除Magento 1.9.2.2中的定价



我在Magento C.E.上运行了一个商店。我购买并安装了一个模板。一切运行正常。我需要定制商店的一些部分,并对产品详细信息页面进行一些修改。我很想用一种快速的方法:转到phtml文件并注释或删除我想要删除的内容。但我读到,最佳实践要求使用后退方法。我熟悉主题default>rwd>我购买的模板的层次结构的某些方面。

但是,有人能举一个详细的例子来说明如何使用回退方法从产品详细信息页面中删除定价吗?

感谢

使用覆盖和子主题。

前往设置->常规->设计->主题并添加:

Templates: {{Name of your child theme e.g custom}}
Skin (Images / CSS): {{Name of your child theme e.g custom}}
Layout: {{Name of your child theme e.g custom}}
Default: {{Name of the theme you are using}}

创建以下文件夹

在设计中,在{{package}}文件夹中创建一个名为"custom"的文件夹并添加基本文件夹结构:

  • "布局"
  • "区域设置"
  • "模板"

skin/frontend/{{package}} 上的皮肤文件夹执行相同操作

创建文件夹自定义并添加文件夹

  • "css"
  • "图像"
  • "js"

若要使用替代,只需将文件复制到子主题的相应文件夹即可。例如

frontend/{{package}}/{{theme}}/template/catalog/product/view.phtml

致您的E.g副本

frontend/{{package}}/custom/template/catalog/product/view.phtml

相关内容

最新更新