pokertotof Posted May 21, 2011 Share Posted May 21, 2011 Bonjour, comment supprimer le tri, inutile sur mon site (prestashop1.4)Merci d'avance Link to comment Share on other sites More sharing options...
jeckyl Posted May 21, 2011 Share Posted May 21, 2011 Bonjour,heu supprimer le fait de trier ou juste supprimer la liste déroulante de tri sur les fiches produits ?dans le second cas, ceci a déjà été expliqué et cela se trouve dans le tpl product-list. Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Il te suffit de rajouter ça à la fin de ton fichier CSS : #productsSortForm {display:none}[/code} Link to comment Share on other sites More sharing options...
jeckyl Posted May 21, 2011 Share Posted May 21, 2011 Il te suffit de rajouter ça à la fin de ton fichier CSS : #productsSortForm {display:none}[/code}C'est bien de tout cacher en css mais il faut bien la charger la donnée pour la cacher, ce n'est pas le meilleur pour optimiser ses sites. Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 je veux juste supprimer la liste déroulante de tri. J'ai cherché un peu partout, mais ce que j'ai trouvé ne fonctionne pas. Faut dire que j'ai rien trouver de super clair pour un néophyte comme moi ;-) Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Vide tout simplement le fichier product-sort.tpl de ton thème (en faisant une copie avant bien sur) Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 je le supprime complètement? Link to comment Share on other sites More sharing options...
jeckyl Posted May 21, 2011 Share Posted May 21, 2011 Bonjour,dans le fichier category.tpl de votre thème, vous devez efface ou commenter la ligne 83 du thème standard : {include file="$tpl_dir./product-sort.tpl"} Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Videz le (ca évitera d'avoir à modifier tous les fichiers ou il est appelé) Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 qu'y a t'il de mieux enlever la ligne du fichier category.tpl ou vider le fichier product sort? Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Dans l'idéal supprimer tous les appels à product-sort.tpl dans : - best-sales.tpl - category.tpl - manufacturer.tpl - new-products.tpl - prices-drop.tpl - search.tpl - supplier.tpl Link to comment Share on other sites More sharing options...
jeckyl Posted May 21, 2011 Share Posted May 21, 2011 qu'y a t'il de mieux enlever la ligne du fichier category.tpl ou vider le fichier product sort? vider le fichier pour faire viteeffacer l'appel du fichier pour améliorer les performance du site Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 j'ai effacé la ligne 83, mais le tri apparait toujours sur mon site Link to comment Share on other sites More sharing options...
jeckyl Posted May 21, 2011 Share Posted May 21, 2011 j'ai effacé la ligne 83, mais le tri apparait toujours sur mon site Vous avez bien entendu penser à vide le cache de Prestashop ou a le désactiver et à activer le forçage de compilation afin d'obliger Prestashop à regénérer le fichier. Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 euh...c'est quoi qu'tout ça? Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Dans l'onglet Performances de votre boutique si vous êtes en 1.4 : http://easycaptures.com/fs/uploaded/441/2546944907.pngSi vous êtes en 1.3 et plus ancien, videz le dossier /tools/smarty/compile de votre FTP (sauf index.php) Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 ça veut dire qu'à chaque fois qu'on doit modifier un fichier il faut faire ces 2 manips? Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 Snif...toujours pas de changement sur le site Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 ça veut dire qu'à chaque fois qu'on doit modifier un fichier il faut faire ces 2 manips? Si vous êtes sur la 1.4, vous pouvez forcer la compilation (pour vos tests). Link to comment Share on other sites More sharing options...
Samy_R Posted May 21, 2011 Share Posted May 21, 2011 Snif...toujours pas de changement sur le site Vous avez bien vidé le répertoire /tools/smarty/compile ?Quelle est l'adresse de la boutique ? Link to comment Share on other sites More sharing options...
pokertotof Posted May 21, 2011 Author Share Posted May 21, 2011 c'est bon ça fonctionne apres un forçage de rafraichissementMerci pour tout!! Link to comment Share on other sites More sharing options...
comunclic Posted October 28, 2016 Share Posted October 28, 2016 Bonjour, Je suis sous prestashop 1.6.1.6 et je souhaiterai également enlever cette fenêtre "tri" de sur mon site e-commerce. J'ai vider le fichier product-form.tpl qui a 0 octect - j'ai également dans le fichier category.tpl enlever la ligne {include file="$tpl_dir./product-sort.tpl"} et vider mon cache. Malgrès tout cela j'ai toujours cette fenêtre "tri" qui pourrait m'aider - merci ? 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