hallen77 Posted April 4, 2016 Share Posted April 4, 2016 Bonjour, Dans le mail de confirmation de commande du client, je voudrais inclure un lien cliquable qui amène directement vers la facture du client sans passer par l'historique des commandes. Je vois que les liens amenant aux facture sont du style : http://mon-site.fr/index.php?controller=pdf-invoice&id_order=10 Est ce qu'il y a un moyen pour que l'id de la commande du client se mette automatiquement à la fin de ce lien s'il vous plait ? Link to comment Share on other sites More sharing options...
erouvier29 Posted April 5, 2016 Share Posted April 5, 2016 Cf. votre manip pour supprimer le PDF de la facture du mail envoyé, même fichier (/classes/PaymentModule.php), même méthode (validateOrder), un peu plus haut (à partir de la ligne 705 en PS 1.6.1.4), vous avez l'allocation des paramètres du mail: $data = array( '{firstname}' => $this->context->customer->firstname, '{lastname}' => $this->context->customer->lastname, '{email}' => $this->context->customer->email, '{delivery_block_txt}' => $this->_getFormatedAddress($delivery, "\n"), ... Ajoutez '{order_id}' => $order->id, Et modifiez vos templates de mail (/mail/order_conf.html et /mail/order_conf.txt) en conséquence. 1 Link to comment Share on other sites More sharing options...
hallen77 Posted April 5, 2016 Author Share Posted April 5, 2016 Parfait, 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