Jump to content

Draw a line between each row of products


Recommended Posts

Does anyone know how I would draw a line after each row of products ?

 

I think it goes somewhere in the homefeatured.tpl file below which I have set at 3 products a line. Thanks in advance.

 

 

{assign var='liHeight' value=342}

{assign var='nbItemsPerLine' value=3}

{assign var='nbLi' value=$products|@count}

{assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}

{assign var='ulHeight' value=$nbLines*$liHeight}

<ul style="" class="imgteaser">

{foreach from=$products item=product name=homeFeaturedProducts}

<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">

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