chantal.herman Posted March 14, 2013 Share Posted March 14, 2013 Bonjour à tous merci de prendre le temps de lire mon message. Voici l'adresse : www.depot-vente-paris-7.fr Comme vous pouvez le constater, pour les produits phares, les lignes de mes produits font 4-4-3-3.. Je ne comprends pas et ce n'est vraiment pas très beau. Je souhaiterais pouvoir avoir 4 produits sur chaque ligne. Dans homefeatured.tpl, l{assign var='nbItemsPerLine' value=4}, ce qui est normal.. Et c'est à ce moment la que je bloque.. dois-je modifier autre chose ? MErci beaucoup Thomas Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 Bonjour, je pense qu'il doit y avoir une surcharge de homefeatured.tpl dans le dossier du thème parce qu'actuellement, il y a une classe omega rajoutée tous les 5 items. Une fois le fichier homfeature.tpl modifié (et le cache vidé), il suffira de modifier le css #featured_products ul li.omega { margin-right: 0; } Jean-Marc Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 Merci pour votre réponse, Savez vous que dois-je modifier dans le fichier homefeatured.tpl pour pouvoir résoudre le problème de surcharge ? Merci Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 pouvez-vous recopier la ligne complète du fichier homefeatured.tpl qui doit se trouver dans : themes/theme582/modules/homefeatured et qui commence par <li class="ajax_block_product Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 <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} Merci beaucoup ! Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 même plutot ça : <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} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}"> Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 ça ne correspond pas à ce qui s'affiche sur le site. C'est bien le module standard de Prestashop qui est utilisé ? Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 Je vais dans module/homefeatured/homefeatured.tpl Voici les lignes de mon .tpl contenu dans mon theme/modules... <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.iteration is div by 5} omega{/if} num-{$smarty.foreach.homeFeaturedProducts.iteration}"> <a class="product_image" href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" /> </a> dois je modifier lui ? Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 Ah oui là, c'est mieux ! {if $smarty.foreach.homeFeaturedProducts.iteration is div by 5} il faut modifier "is div by 5" par "is div by 4" Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 (edited) Voilà, maintenant toujours au même endroit, il doit y avoir homefeatured.css à la ligne #featured_products ul li.omega { } mettre #featured_products ul li.omega { margin-right: 0; } Edited March 14, 2013 by jmalixe (see edit history) Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 Je viens de le faire, dommage j'ai eu bon espoir mais rien ne s'est passé. J'ai pourtant désactiver les caches et forcer la compilation.. Je ne comprends pas pardon je n'ai pas vu votre dernier message j'essaye dessuite je n'ai pas de homefeatured.css dans mon dossier module dans le thème Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 ok je suis long à la détente, je pensais que "toujours au même endroit" voulait dire dans le dossier du module.. Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 Je me suis mal exprimé, il doit toujour être dans le dossier des thèmes mais dans css/modules/homefeatured Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 je me doute que ça ne doit pas être évident d'expliquer. Mon fichier .css dans le dossier css/module/homefeatured fait 0ko Ce n'est pas normal ? Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 ils font d'ailleurs tous 0ko... Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 Non pas trop normal. S'il est vraiment vide, peut-être que la ligne est dans css/global.css (toujours dans le dossier du thème) Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 Exact, global.css, cela marche vous pouvez vérifier par vous même. Super merci pour votre disponibilité et votre patience ! Bonne continuation Link to comment Share on other sites More sharing options...
jmalixe Posted March 14, 2013 Share Posted March 14, 2013 De rien. NIckel ! C'est mieux comme ça. @+ Link to comment Share on other sites More sharing options...
chantal.herman Posted March 14, 2013 Author Share Posted March 14, 2013 Vraiment beaucoup mieux oui ! Merci encore Link to comment Share on other sites More sharing options...
Recommended Posts