anne_r Posted June 15, 2011 Share Posted June 15, 2011 Bonsoir,sous PS 1.2.5.Je souhaiterai présenter la liste des Fabricants en colonne ou sous forme d'un A à Z en liste simple sur plusieurs colonnes sur cette page , et non sur une seule liste comme suit : http://shop.lillibulle.com/manufacturer.phpUne idée?J'ai cherché mais je ne trouve pas de module simple ou un code pour faire un A à Z MerciAnne Link to comment Share on other sites More sharing options...
MayMo design Posted June 15, 2011 Share Posted June 15, 2011 le lien de la boutique est en maintenance ... Link to comment Share on other sites More sharing options...
anne_r Posted June 15, 2011 Author Share Posted June 15, 2011 oups, voilà c'est ouvert ;-) Link to comment Share on other sites More sharing options...
MayMo design Posted June 15, 2011 Share Posted June 15, 2011 ok je vois. alors si tu es capable de créer un site pareil ( trés beau au passage bravo ), alors tu es capable de mettre des : ainsi de suite..et jouer sur les CSS avec le float :left pour les j’espère que tu as compris l'exemple. Link to comment Share on other sites More sharing options...
anne_r Posted June 15, 2011 Author Share Posted June 15, 2011 Merci pour ta reponse rapide.Oui j'avais compris que c'etait ça, mais je me demandais s'il y avait pas un genre de petit module pour un page efficace pour voir les Fabricants.La flemme de dernière minute due aux heures tardives accumulées. Je vais m'y coller alors.Merci pour le compliment, j'en ai bavé quand même ;-)Anne Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 Bonjour,en fait je n'y arrive pas ;-) fatigue sans doute.JE te propose d eregarder le code ma page manufacturer-list.tpl >{capture name=path}{l s='Manufacturers'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Manufacturers'} {if isset($errors) AND $errors} {include file=$tpl_dir./errors.tpl} {else} {if $nbManufacturers > 1}{l s='There are'} {$nbManufacturers} {l s='manufacturers.'}{else}{l s='There is'} {$nbManufacturers} {l s='manufacturer.'}{/if} {if $nbManufacturers > 0} {include file=$tpl_dir./product-sort.tpl} </pre> <ul> {foreach from=$manufacturers item=manufacturer} <!-- name --> {if $manufacturer.nb_products > 0}getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} {/foreach} </ul> <br><br> {include file=$tpl_dir./pagination.tpl}<br>{/if}<br>{/if Si quelqu'un peux m'aider ;-)merci d'avanceanne Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Il ne faut pas juste appliquer : #manufacturers_list li { float: left; list-style: none outside none; margin: 0.5em 0; width: 150px; } Enfin, un truc du genre ? Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 Bonjour,Merci pour ta réponse. Mais je pense avoir un autre soucis et j'ai par ailleurs ouvert une note à ce sujet.J'ai inséré ce que tu m'as dit dans le css et rien ne se passe pas de modif.Voir le pb:http://www.prestashop.com/forums/viewthread/114872/integration/votre_compte_adresse__theme_par_defaut_a_disparu__probleme_maj_fichier_tpl/Mes pages commandes au niveau des adresses du client, les modes de paiement (paypal, cheque, virement) et et ainsi que manufacturer-list, ne prennent pas en compte le css, tout s'affiche en liste.Je ne sais pas si je suis claire.Si vous avez une idee, je suis preneuse car là je devais lancer le site et en testant j'ai vu ce pbalors que sur les autres sites sur lesquels je travaille je n'ai pas ce soucis.Merci!Anne Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Pour aller un peu plus loin même : {assign var=first value=''} {foreach from=$manufacturers item=manufacturer} {if first != $manufacturer.name[0]} {$manufacturer.name[0]} {/if} {assign var=first value=$manufacturer.name[0]} <!-- name --> {if $manufacturer.nb_products > 0}getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} {/foreach} Et côté CSS : .first-letter { bottom: -5px; font-size: 40px; font-weight: bold; left: -20px; opacity: 0.2; position: absolute; text-transform: capitalize; } #manufacturers_list li { float: left; list-style: none outside none; margin: 0.5em 0; width: 150px; position: relative; } EDIT : pour ton souci, désactive toutes les mises en cache dans l'onglet Performances et force la compilation. Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 tout d'abord merci beaucoup de prendre le temps de m'aider, je regarde ça mais je pense que ça ne passe pas.Je n'ai pas l'onglet "performance" ou alors je ne le vois pas, je suis sous PS 1.2.5.Par ailleurs j'ai vidé le cache, forcé smarty. Rien n'y fait.Pourtant les autres fichier tpl, les modifs apparaissent sans problème. donc c'est autre chose. Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 quand je rajoute ton code dans le manufacturer-list.tpl ça plante.Je regarde dans le code et ne vois pas.Peut etre est ce que je ne l'ai pas correctement mis? >{capture name=path}{l s='Manufacturers'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Manufacturers'} {if isset($errors) AND $errors} {include file=$tpl_dir./errors.tpl} {else} {if $nbManufacturers > 1}{l s='There are'}{$nbManufacturers} {l s='manufacturers.'}{else}{l s='There is'} {$nbManufacturers} {l s='manufacturer.'}{/if} {if $nbManufacturers > 0} {include file=$tpl_dir./product-sort.tpl} </pre> <ul> {assign var=first value=''} {foreach from=$manufacturers item=manufacturer} {if first != $manufacturer.name[0]} </ul> <span>{$manufacturer.name[0]}</span><br> {/if}<br><br> {assign var=first value=$manufacturer.name[0]}<br><br><br><div> <!-- name --> {if $manufacturer.nb_products > 0}{getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} </div> <br><br> {/foreach} <br><br><br><br><br><br> {include file=$tpl_dir./pagination.tpl}<br>{/if}<br Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 ai fait correction avec ton code , ai j'obtiens :http://shop.lillibulle.com/manufacturer.phpJ'aurais souhaitez mettre en colonne, c'est ça que j'arrive pas à faire.Et je crois que c'est le meme soucis pour mes pages adresse, paiement..de votre compte Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Tu as bien le CSS que je t'ai mis dans les messages ? Car il n'est pas présent !C'est ça qui va le rendre en colonne, et tu peux me dire quelle correction tu as faite ? J'ai vu l'erreur aussi, mais la ça ne fait pas le résultat attendu. Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 oui oui j'ai mis à jour le global.css , et c'est bien ça mon problème.Donc manufacturer-list ne prend pas en compte le css et c'est pareil pour mes page adresses.tpl, et tous mes order....tply a un truc ...mais où? Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Ah ah ! j'ai vu le bug, ligne 2111 du Global.css !Il y a : #thumbs_list li{ float:left; cursor:pointer; width: 80px; height: 80px; #views_block{ margin:0pt auto; width: 274px; } Il faut supprimer la ligne : #views_block{ Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 ohlalalalala!!!!! je sais pas comment te remercier!!!!!??????C'etait bien ça et tout est revenu correctement! Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Montre moi ton .tpl final car il y a encore une petite erreur. Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 Le fichier manufacturer-list.tpl je suppose : >{capture name=path}{l s='Manufacturers'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Manufacturers'} {if isset($errors) AND $errors} {include file=$tpl_dir./errors.tpl} {else} {if $nbManufacturers > 1}{l s='There are'} {$nbManufacturers} {l s='manufacturers.'}{else}{l s='There is'} {$nbManufacturers} {l s='manufacturer.'}{/if} {if $nbManufacturers > 0} {include file=$tpl_dir./product-sort.tpl} </pre> <ul> {assign var=first value=''} {foreach from=$manufacturers item=manufacturer} {if first != $manufacturer.name[0]} </ul> <span>{$manufacturer.name[0]}</span><br> {/if}<br><br> {assign var=first value=$manufacturer.name[0]}<br><br><br><br><div> <!-- name --> {if $manufacturer.nb_products > 0}getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} </div> <br><br><br> {/foreach}<br><br><br> {include file=$tpl_dir./pagination.tpl}<br>{/if}<br>{/if}<br><br><br Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Change la boucle foreach par : {foreach from=$manufacturers item=manufacturer} {if $first != $manufacturer.name[0]} {$manufacturer.name[0]} {/if} {assign var=first value=$manufacturer.name[0]} <!-- name --> {if $manufacturer.nb_products > 0}getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} {/foreach} Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 >{capture name=path}{l s='Manufacturers'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Manufacturers'} {if isset($errors) AND $errors} {include file=$tpl_dir./errors.tpl} {else} {if $nbManufacturers > 1}{l s='There are'} {$nbManufacturers} {l s='manufacturers.'}{else}{l s='There is'} {$nbManufacturers} {l s='manufacturer.'}{/if} {if $nbManufacturers > 0} {include file=$tpl_dir./product-sort.tpl} </pre> <ul> {assign var=first value=''} {foreach from=$manufacturers item=manufacturer} {if first != $manufacturer.name[0]} </ul> <span>{$manufacturer.name[0]}</span><br> {/if}<br><br> {assign var=first value=$manufacturer.name[0]}<br><br><br><br><div> <!-- name --> {if $manufacturer.nb_products > 0}getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} </div> <br><br><br> {/foreach}<br><br><br> {include file=$tpl_dir./pagination.tpl}<br>{/if}<br Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 ah ça va pas Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 si ça va mieux!J'ai corrigé Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 En effet, mais pas ma faute par contre C'est au niveau du h3, il faut mettre : <!-- name --> {if $manufacturer.nb_products > 0}{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}{/if} Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 Ok grilled Bon travail du coup, j'aime bien l'effet des lettres, mais libre à toi de le changer. J'ai surtout le moyen de pouvoir organiser par lettre. Link to comment Share on other sites More sharing options...
anne_r Posted June 16, 2011 Author Share Posted June 16, 2011 super, merci encore et encore.Je vais modifier un peu le css pour cadrer tout ça. Link to comment Share on other sites More sharing options...
Vincent Decaux Posted June 16, 2011 Share Posted June 16, 2011 N'oublie de mettre résolu sur ton 1er message, il y a bouton en vert. Link to comment Share on other sites More sharing options...
MayMo design Posted June 16, 2011 Share Posted June 16, 2011 ay ay ay, je suis arrivé en retard.Bravo anne_r, et un grand merci à vincent-decaux Link to comment Share on other sites More sharing options...
JordanBelfort Posted October 10, 2011 Share Posted October 10, 2011 Je reviens sur la discussion... Une idée de comment afficher un alphabet en haut avec un lien vers la lettre correspondante pour chaque lettre ? Comme on voit sur beaucoup de site... Link to comment Share on other sites More sharing options...
webzero Posted October 24, 2011 Share Posted October 24, 2011 Bonjour à tous, Je viens de m'inspirer de ce topic pour ma propre liste de fabricants, mais voilà je coince en route et l'effet n'est pas net. Je n'ai pas beaucoup de fabricants et je voudrait éviter la pagination en les mettant tous dans la même page. Comment faire? Autre chose, je n'arrive pas à faire appliquer le CSS sur les lettres, comme il a été fait sur ce topic. Je vous mets mon manufacturer-list.tpl, il y a petit quelque chose que j'ai mal fait. {capture name=path}{l s='Manufacturers'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <div class="list_categorie_product extra_list_categorie_product"> <h1>{l s='Manufacturers'}</h1> {if isset($errors) AND $errors} {include file="$tpl_dir./errors.tpl"} {else} <p>{strip} <span> {if $nbManufacturers == 0}{l s='There are no manufacturers.'} {else} {if $nbManufacturers > 1}{l s='There are'} {$nbManufacturers} {l s='manufacturers.'}{else}{l s='There is'} {$nbManufacturers} {l s='manufacturer.'}{/if} {/if} </span>{/strip} </p> {if $nbManufacturers > 0} <ul id="manufacturers_list"> {foreach from=$manufacturers item=manufacturer} <li class="{if $smarty.foreach.manufacturers.first}first_item{elseif $smarty.foreach.manufacturers.last}last_item{else}item{/if}"> {if $first != $manufacturer.name[0]} {$manufacturer.name[0]} {/if} {assign var=first value=$manufacturer.name[0]} <div class="left_side"> <!-- name --> <h3> {if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}</a>{/if} </h3> {/foreach} </ul> {/if} {/if} </div> Merci d'avance pour votre aide. P.S : GuilVII, si tu as trouvé une solution pour faire ton alphabet, je serais intéressée. Link to comment Share on other sites More sharing options...
JordanBelfort Posted October 24, 2011 Share Posted October 24, 2011 Pour supprimer la pagination des fabricants, je donne la réponse ici : http://www.prestashop.com/forums/topic/136854-resolu-supprimer-pagination-marques-fabricants-14/page__fromsearch__1 Et pour l'alphabet j'ai aussi trouvé, il faut suivre ce tuto : http://learn.mozku.com/2010/04/16/prestashop-order-manufacturers-in-alphabetical-smarty-php-learn-smarty/ Cependant, il est pour l'ancienne version de prestashop donc il faut l'adapter ce que j'ai fait pour la version 1.4 En plus, ce qu'ils ne disent pas dans le tuto c'est qu'il faut rajouter un plug in smarty dans tools/smarty/plugins qui est substring permettant de sélectionner la première lettre des fabricants. Le plug in disponible ici : http://pivotx.net/dev/docsxref/2.3.x/nav.html?pivotx/modules/smarty/plugins/modifier.substring.php.source.html Link to comment Share on other sites More sharing options...
webzero Posted October 25, 2011 Share Posted October 25, 2011 Je vais tester tout çà. Par contre quand je sort la pagination, j'ai une partie des fabricants qui disparaissent. Comment les faire tous venir sur la page principale? Tout ce que j'ai pu constaté c'est que le nombre de produits influe sur le nombre fabricants affichés. Mais si je mets 100 sur les préférences produits, mes pages produits sont aussi modifiés et çà je ne le souhaite pas. Il devrait avoir un moyen de gérer les fabricants et les fournisseurs séparément des produits. Merci pour ton aide. Link to comment Share on other sites More sharing options...
JordanBelfort Posted October 25, 2011 Share Posted October 25, 2011 Bin suit mon post : Dans ManufacturerController.php il suffit de supprimer la deuxième ligne contenant : $this-> pagination ($nbproducts); Et là tu supprimes la pagination des fabricants. Link to comment Share on other sites More sharing options...
webzero Posted October 25, 2011 Share Posted October 25, 2011 C'est bon, j'ai vérifié et j'avais fait une erreur ce matin. Merci en tout cas et bonne continuation. 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