mpshop Posted October 25, 2011 Share Posted October 25, 2011 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 More sharing options...
Carolina Custom Designs Posted October 25, 2011 Share Posted October 25, 2011 To add a line you would do this in your global.css. Hope that helps! Marty Shue 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