Magento 1.7 覆盖管理 phtml 文件?

标签 magento

我正在尝试覆盖 app\design\adminhtml\default\default\template\page\head.phtml 模板文件,因此我在我的主题文件夹中创建了一个副本。该文件夹是 *app\design\adminhtml\default\my_theme\template\page\head.phtml*。

这行不通,但为什么呢?难道管理区没有这种覆盖机制吗?

谢谢!

最佳答案

是的,它在管理区。转到管理面板 -> 系统 -> 配置 -> 常规选项卡 -> 设计 -> 在主题字段中,在 THEME、SKIN、LAYOUT 和 DESIGN 上填写您的主题名称。

不要忘记清除 var/cache/ 并在系统 -> 缓存管理中禁用所有缓存*

关于Magento 1.7 覆盖管理 phtml 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18875384/

相关文章:

php - 从 Orddermotion ERP 上传 Magento 产品

magento - 如何覆盖magento默认的欢迎消息?

php - 找不到 Magento 列 : 1054 Unknown column 'cat_index_position' in 'order clause'

Magento 2 结账运费收集

php - Magento : Add customer default billing address

php - 未定义索引 : _attribute_set in magento product csv import from admin

Magento 免运费按总计计算

magento - 更改重复产品的 Magento 默认状态

Magento Gif 上传

PHP 尝试自动加载随机类名