Hawthorne Posted December 5, 2018 Share Posted December 5, 2018 Bonjour à tous ! Je suis sur Prestashop 1.7. Je cherche actuellement à personnaliser un peu une nouvelle catégorie. J'ai fais des modifications dans le fichier products.tpl pour rajouter mon code, et pour que les modifications se limitent à ma page j'ai fais un : {elseif $category.name == 'nomdemacategorie'} mon traitement {else} traitement par défaut Ceci a marché pour déjà plusieurs catégories mais là avec la nouvelle rien à faire ! mon code est là, mais aucunes modifications sur ma page. Auriez vous une idée ? Link to comment Share on other sites More sharing options...
thomasharko Posted December 6, 2018 Share Posted December 6, 2018 Bonjour, Vous pouvez essayer avec l'id de la catégorie au lieu du nom, $category.id == 1 il me semble. Bonne fin de journée Thomas Link to comment Share on other sites More sharing options...
Hawthorne Posted December 9, 2018 Author Share Posted December 9, 2018 J'ai également essayé avec l'id en effet, et pareil, rien à faire ! c'est très étrange. Peut être parce que le nom de la catégorie contient un accent ? pourtant dans ce cas, essayer avec l'id devrait supprimer tout problèmes. 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