Jump to content

POsition des articles du homefeature


Recommended Posts

Bonjour j'ai un problème de positionnement des articles , par exemple, pour 6 articles , au lieu d'avoir 3 articles par ligne, j'ai

 

1 2 3

4

5 6 7....

 

au lieu de

 

1 2 3

4 5 6

 

J'ai cherché dans le code en mettant min-width , mais il ne me le repositionne toujours pas :/

Link to comment
Share on other sites

j'aime pas enlever du code smarty ^^

 

voila ce que j'ai enlevé et maintenant ça marche :/ . Qu'en pense les experts de prestashop ?

 

{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}"

 

du coup j'ai mon code :

 

<li class="ajax_block_product item ">

 

au lieu de <li class="ajax_block_product item {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}">

 

j'aime pas enlever du code ^^

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...