Jump to content

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


Recommended Posts

我在tpl文件删除了“描述” 和“加入购物车”,但是多出了空间,在css文件中没找到怎么修改高度。谁能帮忙指导一下。谢谢!

13023_hsuCNhmTBX0hHfDV1zOz_t

Share this post


Link to post
Share on other sites

请问,你使用的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> <!-- 这是最后计算出来的行高,你不用动它! -->



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

Share this post


Link to post
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...

Important Information

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