Jump to content

修改了featured products,出了点问题,谁能帮忙一下


KoCool

Recommended Posts

请问,你使用的Featured Products插件是原装的吗?

如果是,那么打开modules/homefeatured/homefeatured.tpl。在第6行和第11行之间,是类似下面这样的smarty代码

>
{assign var='liHeight' value=360} <!-- 这是每一行的行高,单位为px,你可以设置它! -->
{assign var='nbItemsPerLine' value=4} <!-- 这是每一行的产品数目,你可以不用设置它! -->
{assign var='nbLi' value=$products|@count}
{assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
{assign var='ulHeight' value=$nbLines*$liHeight}
</pre>
<ul> <!-- 这是最后计算出来的行高,你不用动它! -->



上面的代码里的<!--与 -->之间的内容是我的注释。根据你的产品排列情况来设置相应的值。

Link to comment
Share on other sites

  • 2 years later...
  • 4 weeks later...

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
×
×
  • Create New...