David57 Posted April 29, 2013 Share Posted April 29, 2013 (edited) Bonjour, Je suis sur Prestashop 1,5,4,1 Je cherche en vain à désactiver l'envoi du mail "order confirmation", lorsque Cash On Delivery est utilisé en moyen de paiement? Je voudrais envoyer un autre mail à la place, mais uniquement pour COD? Quelqu'un peut il m'expliquer comment est configuré cet envoi automatique? Ou quel code à modifier? Merci d'avance! Edit: J'ai trouvé une méthode: Dans "paymentModule.php", j'ai ajouté " if ($id_order_state != 13 " // Send an e-mail to customer (one order = one email) if ($id_order_state != 13 && $id_order_state != Configuration::get('PS_OS_ERROR') && $id_order_state != Configuration::get('PS_OS_CANCELED') && $this->context->customer->id) { $invoice = new Address($order->id_address_invoice); $delivery = new Address($order->id_address_delivery); $delivery_state = $delivery->id_state ? new State($delivery->id_state) : false; $invoice_state = $invoice->id_state ? new State($invoice->id_state) : false; ......./ Edited May 9, 2013 by David57 (see edit history) 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