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"/>

翻译

升级注意事项(注意你要先备份下你要修改的这个模板)

  • 记得升级版本的时候,要清空缓存文件(根目录的var文件夹,删除里面的所有文件)
  • 在模版的layout中catalog/product_list_toolbar block换到page/html_pager(参考下面的2)
  1. 替换catalog/product/list/toolbar.phtml至1.4.0.1的文件(用1.4.0.1的替换你自己的1.3的)
  2. 更新 catalog.xml 文件中的<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">替换为<block type="page/html_pager" name="product_list_toolbar_pager"/>

简单翻一下,大家看下吧

 

转载表明出处:右兜钥匙 hellokeykey.com

《magento 1.4.0.1stable 与 1.3之前的模板兼容》有2个想法

  1. 我的版本就 v1.3.2.4, 因为网站是找人做的,没有admin的最高权限,可是一直联系不上帮我做网站的人,悲剧。。请问有办法自行升级吗?Promotion、Mobile和Widget等功能是不是升级过后就有呢?求key哥解答 ^^

评论已关闭。