raphael Posted April 27, 2018 Share Posted April 27, 2018 Bonjour, je cherche a rajouter sur des factures une mention libre " paiement sous 30 Jours ou paiement sous 15 jours en fonction des clients rajouter du contenus en bas des factures en fonction de tels et tels clients, connaissez vous un modules qui fait cela ? ou puis-je le rajouter manuellement j'ai penser rajouter un libellé dans la fiches client mais il ne s'affiche pas dans la facture Merci d'avance Link to comment Share on other sites More sharing options...
Eolia Posted April 27, 2018 Share Posted April 27, 2018 C'est natif dans Prestashop^^ Link to comment Share on other sites More sharing options...
raphael Posted April 27, 2018 Author Share Posted April 27, 2018 J'ai bien trouver cette partie la mais enfaîte j'aimerais que le message soit propre a chaque client car j'ai des client paiement sous 30 jours et d'autres paiement sous 15 jours je pense qu'il faut rajouter cela dans la partie client en backoffice non? Link to comment Share on other sites More sharing options...
Eolia Posted April 27, 2018 Share Posted April 27, 2018 Dans la page des commandes vous pouvez ajouter une note sur les factures. Si vous voulez le faire de manière automatique il faut utiliser le hook prévu à cet effet et écrire votre code public function hookDisplayPDFInvoice($params) { return $this->l('Message for your specific client. See -> $params'); } Link to comment Share on other sites More sharing options...
raphael Posted April 27, 2018 Author Share Posted April 27, 2018 merci pour votre réponse en rajouter une note je le voit pas sur la facture pdf ? sa risque d'étre compliquer d'allez rajouter cela dans le code pour chaque client pour moi , il existe pas un modules qui fait cela? Link to comment Share on other sites More sharing options...
doekia Posted April 27, 2018 Share Posted April 27, 2018 Ou encore vous pouvez mettre en place un rendu différent en ajustant les tpl des pdf (themes/<votre-thème>/pdf/invoice*.tpl) Link to comment Share on other sites More sharing options...
raphael Posted April 27, 2018 Author Share Posted April 27, 2018 j'ai une solution sinon dans le backoffice sur la fiche client il y'a une ligne "AUTRES" mais qui ne s'affiche pas sur la factures , il me suffirait de faire apparaître celle ci sur la factures comme sa je peux la personnalisé a chaque client savez vous le code a mettre pour faire apparaître cette rubrique sur la facture Merci de votre aide Link to comment Share on other sites More sharing options...
Eolia Posted April 27, 2018 Share Posted April 27, 2018 Sauf que ce champ, le client peut le modifier comme il veut aussi^^ Link to comment Share on other sites More sharing options...
raphael Posted April 27, 2018 Author Share Posted April 27, 2018 oui c'est vrai mais j'ai que quelqu'un client qui sont comme sa , je vérifiai moi même les factures savez vous comment faire apparaître ce champs sur la factures ? sa serai génial Link to comment Share on other sites More sharing options...
doekia Posted April 27, 2018 Share Posted April 27, 2018 $customer->note si tu as une instance de customer (Context::getContext()->customer->note) Tu peux aussi passer par le groupe client (si le client appartient à un groupe donné, afficher un message) Link to comment Share on other sites More sharing options...
raphael Posted April 27, 2018 Author Share Posted April 27, 2018 j'ai bien vidé mon cache et ma config est sur recompiler si changement j'ai bien rajouter <tr> <td colspan="7">{Context::getContext()->customer->note}</td> </tr> dans le fichier invoice.tpl 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