magento1.3模板升级1.4模板兼容教程

根据官方的跟新日志的提示,我做了如下实践,将1.3.2.4升级至1.4.0.1稳定版。

1.我们可以详细的对比下1.3与1.4文件的区别,文件内容的区别,不一样的就替换成新版本的内容

2.用1.4catalog/product/list/toolbar.phtml 文件替换掉1.3的文件内容

3.观察1.4中catalog.xml文件内容与1.3中的区别

4. 在catalog.xml文件中的<catalog_category_default> 与 <catalog_category_layered>这两处(注意是两处都要修改)我们观察下就发现了区别

第一步,将

<block type="page/html_pager" name="product_list_toolbar_pager"/>

加在 继续阅读“magento1.3模板升级1.4模板兼容教程”

magento 1.4.0.1stable 与 1.3之前的模板兼容

   http://www.hellokeykey.com/magento-1-3-theme1-4-theme/ 我已经在这个网址跟新了这篇文章,请调至新地址查看

   magento升级到1.4.0.1stable(稳定版)以后发现之前在1.3.x中的模板不能用了(在产品列表页会出错)。在1.4.0.1stable中的产品列表页多了些新的功能,并且在magento的主题文件夹页有所改动,我觉得这次升级,主题文件间的关系更加的优化了。

在官方的升级日志中对于模板文件的改动有说明,大家按照这个说明改下就好了(请以官方为准)

Upgrade Notes

  • We highly recommend disabling Magento cache before upgrading
  • In layout of any custom theme the usage of catalog/product_list_toolbar block should be changed to page/html_pager:
    1) Replace the catalog/product/list/toolbar.phtml of your theme by the new one
    2) Update catalog.xml layout: <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> should be replaced into <block type="page/html_pager" name="product_list_toolbar_pager"/>

继续阅读“magento 1.4.0.1stable 与 1.3之前的模板兼容”