tipol Posted May 1, 2011 Share Posted May 1, 2011 J'ai créé des sous-sections pour ranger mes produits mais j'ai alors dans ce cas un message sur la page indiquant "il n'y a aucun produit" est il possible de le faire disparaitre ? Link to comment Share on other sites More sharing options...
Samy_R Posted May 1, 2011 Share Posted May 1, 2011 Ouvre le fichier category.tpl de ton thème et cherche ce code : {strip} {$category->name|escape:'htmlall':'UTF-8'} {if $nb_products == 0}{l s='There are no products.'} {else} {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} {$nb_products} {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if} {/if} {/strip} Corrige le en : {strip} {$category->name|escape:'htmlall':'UTF-8'} {if $nb_products > 0} {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} {$nb_products} {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if} {/if} {/strip} Link to comment Share on other sites More sharing options...
tipol Posted May 1, 2011 Author Share Posted May 1, 2011 ça ne fonctionne pas, il s'agit bien du fichier dont le chemin est prestashop>theme>sprestashop>category.tpl ?j'y ai trouvé le code en question je l'ai changé par celui que tu m'as donné, j'ai enregistré, j'ai rechargé le fichier modifié sur le serveur et j'ai rechargé la page................et le texte y est toujours Link to comment Share on other sites More sharing options...
Samy_R Posted May 1, 2011 Share Posted May 1, 2011 Tu as pensé à vider le cache dans tools/smarty/compile? (sinon, il garde en mémoire la version d'avant) Link to comment Share on other sites More sharing options...
tipol Posted May 1, 2011 Author Share Posted May 1, 2011 oups c'est où ça ? Link to comment Share on other sites More sharing options...
Samy_R Posted May 1, 2011 Share Posted May 1, 2011 Sur le FTP de votre boutique, dans le dossier tools/smarty/compile, vous avez plein de fichiers dont le nom comporte des %%%, supprimez les tous. Link to comment Share on other sites More sharing options...
tipol Posted May 1, 2011 Author Share Posted May 1, 2011 ça ne marchait toujours pas, j'ai finalement supprimé totalement le code indiqué et ça fait ce que je voulais, j'espère que ça ne me posera pas d'autres problèmes par ailleurs.En tout cas 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