bentzak
Senior Member
Hi
happy new year,
I have been using prestashop to build this online shop, the problem is that its an absolute mission to change stuff if ur not that clued up on code!
If u have a look here,
Necklaces - Revy Rocks
u can see that it wont clear the float so that the products that are different sizes fit together smoothly, i tried clear in the css but that didnt work, i figured i need to put it so that it clears the float every 4 products, after lots of searching through tpl files i think i have found the snippet of code where this needs to go, but i think its ajax, i certainly dont understand it anyway!
Cheers for any help u might be able to give me!!! much aprieciated!
Zak
happy new year,
I have been using prestashop to build this online shop, the problem is that its an absolute mission to change stuff if ur not that clued up on code!
If u have a look here,
Necklaces - Revy Rocks
u can see that it wont clear the float so that the products that are different sizes fit together smoothly, i tried clear in the css but that didnt work, i figured i need to put it so that it clears the float every 4 products, after lots of searching through tpl files i think i have found the snippet of code where this needs to go, but i think its ajax, i certainly dont understand it anyway!
Code:
<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}first_item_of_line{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">
Cheers for any help u might be able to give me!!! much aprieciated!
Zak