damdam27 Posted May 28, 2017 Share Posted May 28, 2017 Bonjour, Je voudrais lorsque je saisie manuellement une commande depuis mon BO qu'aucun mail de confirmation de commande ne soit envoyé à mon client. En revanche, je veux conserver l'envoie de ce mail lorsque le client passe lui même sa commande sur le front. Merci d'avance. Link to comment Share on other sites More sharing options...
Baba deCode Posted May 28, 2017 Share Posted May 28, 2017 Bonjour damdam27, Regarde du coté des status de commandes, dans le backoffice, commandes, status, modifer -> "Send an email to the customer when his/her order status has changed." cordialement Link to comment Share on other sites More sharing options...
damdam27 Posted May 28, 2017 Author Share Posted May 28, 2017 Merci mais il n'y a pas pour les confirmations de commande et en plus ca modifierait aussi pour les commandes passées par le front. Cordialement, Link to comment Share on other sites More sharing options...
Baba deCode Posted May 28, 2017 Share Posted May 28, 2017 Quand tu crée une commande il y a bien un "Order status" a choisir, donc tu crée un nouveau status qui n'envoit pas de mail tout simplement ! bon courage Link to comment Share on other sites More sharing options...
damdam27 Posted May 28, 2017 Author Share Posted May 28, 2017 non car dans la version 1.6, tu as malgre tout un mail de confirmation de commande qui est envoyé a ton client meme si tu as choisi un statut qui n'envoie pas de mail Link to comment Share on other sites More sharing options...
Baba deCode Posted May 28, 2017 Share Posted May 28, 2017 Ok est ce que tu sais le message du mail ? si c'est "The email was sent to your customer" on a une fonction dans AdminOrdersController public function ajaxProcessSendMailValidateOrder() { if ($this->tabAccess['edit'] === '1') { $cart = new Cart((int)Tools::getValue('id_cart')); if (Validate::isLoadedObject($cart)) { $customer = new Customer((int)$cart->id_customer); if (Validate::isLoadedObject($customer)) { $mailVars = array( '{order_link}' => Context::getContext()->link->getPageLink('order', false, (int)$cart->id_lang, 'step=3&recover_cart='.(int)$cart->id.'&token_cart='.md5(_COOKIE_KEY_.'recover_cart_'.(int)$cart->id)), '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname ); if (Mail::Send((int)$cart->id_lang, 'backoffice_order', Mail::l('Process the payment of your order', (int)$cart->id_lang), $mailVars, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, $cart->id_shop)) { die(Tools::jsonEncode(array('errors' => false, 'result' => $this->l('The email was sent to your customer.')))); } } } $this->content = Tools::jsonEncode(array('errors' => true, 'result' => $this->l('Error in sending the email to your customer.'))); } } Link to comment Share on other sites More sharing options...
damdam27 Posted May 28, 2017 Author Share Posted May 28, 2017 C'est le mail avec objet :"Confirmation de commande" envoyé au client 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