Jump to content

如何加长featured products模块的产品列数?


leobenson
 Share

Recommended Posts

使用1.2.5版本
我去掉了right column列里里面所有模块 除了购物车模块
现在我想使featured products模块的产品 以每行6个产品排列
请教版主如何实现 需要修改哪些文件?

23486_01YhnUvVzKvb0Rw9v3Ds_t

Share this post


Link to post
Share on other sites

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模块的代码。

Share this post


Link to post
Share on other sites

貌似没有效果~
我也觉得应该是homefeatured.tpl 文件中 的

{assign var='nbItemsPerLine' value=6} 


就能控制 但是改完后 确是这样

觉得是没有控制到产品的排列 控制的是featured products背景的排列

23495_384vr74XIsAmaKTUMCya_t

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More