herbe verte Posted January 17, 2012 Share Posted January 17, 2012 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 More sharing options...
herbe verte Posted January 17, 2012 Author Share Posted January 17, 2012 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 More sharing options...
herbe verte Posted January 17, 2012 Author Share Posted January 17, 2012 car s'il est là il est pour quelque chose . mais pourtant le nombre d'articles de homefeatures est 6 ? . Link to comment Share on other sites More sharing options...
coeos.pro Posted January 17, 2012 Share Posted January 17, 2012 En fait dans modules/homefeatured/homefeatured.tpl tu as une ligne : {assign var='nbItemsPerLine' value=4} il suffit de changer 4 par 3 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