hallen77 Posted April 4, 2016 Share Posted April 4, 2016 Bonjour, Je voudrais faire en sorte que mon Prestashop 1.6.1.0 envoie le mail de confirmation de commande sans joindre la facture PDF. Dans le back office, on peut enlever l'option "joindre la facture pdf" au mail 'paiement accepté" mais on ne peut pas le faire pour le mail de confirmation de commande. Apparemment, c'est dans le fichier Classes/PaymentModule.php que la facture est jointe à ce mail, à la ligne 782 if (Validate::isEmail($this->context->customer->email)) Mail::Send( (int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop ); } Comment modifier ce code pour que la facture ne soit pas attachée au mail confirmation de commande s'il vous plait ? Link to comment Share on other sites More sharing options...
tuk66 Posted April 4, 2016 Share Posted April 4, 2016 Remplacer $file_attachement avec null. Replace $file_attachement with null. 1 Link to comment Share on other sites More sharing options...
hallen77 Posted April 4, 2016 Author Share Posted April 4, 2016 Merci, ça à l'air de fonctionner. 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