leobenson Posted May 13, 2010 Share Posted May 13, 2010 使用1.2.5版本我去掉了right column列里里面所有模块 除了购物车模块现在我想使featured products模块的产品 以每行6个产品排列请教版主如何实现 需要修改哪些文件? Link to comment Share on other sites More sharing options...
21846657 Posted May 13, 2010 Share Posted May 13, 2010 1. 备份后修改/modules/homefeatured/homefeatured.tpl,将下面: {assign var='nbItemsPerLine' value=4} 修改为: {assign var='nbItemsPerLine' value=6} 2. 给<h4>加个class,譬如class="longHeaderBg"3. 备份后修改global.css,在最后加上: .longHeaderBg { background: url("../img/block_header_large_long.gif") no-repeat left top transparent} 4. 制作名称为block_header_large_long.gif的背景图片,并copy到主题目录下的img目录里。5. 清空smarty cache,测试。p.s.: 如果出现布局混乱,则需要修改global.css里对应homefeatured模块的代码。 Link to comment Share on other sites More sharing options...
leobenson Posted May 13, 2010 Author Share Posted May 13, 2010 貌似没有效果~ 我也觉得应该是homefeatured.tpl 文件中 的 {assign var='nbItemsPerLine' value=6} 就能控制 但是改完后 确是这样觉得是没有控制到产品的排列 控制的是featured products背景的排列 Link to comment Share on other sites More sharing options...
21846657 Posted May 13, 2010 Share Posted May 13, 2010 <li> class里,判断first_item,last_item,last_item_of_line,clear,last_line的smarty代码要重写。 Link to comment Share on other sites More sharing options...
leobenson Posted May 13, 2010 Author Share Posted May 13, 2010 其实我想要的就是这位仁兄的效果 看样子工作量挺大的 哎 自个慢慢研究吧。。http://www.prestashop.com/forums/viewthread/31155// Link to comment Share on other sites More sharing options...
21846657 Posted May 14, 2010 Share Posted May 14, 2010 我重新看了看代码。CSS代码也要重写。smarty代码重写的不多,CSS就多了。 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now