jepot Posted June 12, 2014 Share Posted June 12, 2014 Site sous PS 1.4.9 Bonjour à tous, j'ai réussi à recevoir un mail lorsqu'un client fait une demande de retour à l'aide de "$message = new Message(); $message->id_customer = (int)(self::$cookie->id_customer); $message->message = $orderReturn->question; $message->id_order = (int)($idOrder); $message->private = false; $message->add(); if (!Configuration::get('PS_MAIL_EMAIL_MESSAGE')) $to = strval(Configuration::get('PS_SHOP_EMAIL')); else { $to = new Contact((int)(Configuration::get('PS_MAIL_EMAIL_MESSAGE'))); $to = strval($to->email); } $toName = strval(Configuration::get('PS_SHOP_NAME')); $customer = new Customer((int)(self::$cookie->id_customer)); if (Validate::isLoadedObject($customer)) Mail::Send((int)(self::$cookie->id_lang), 'order_customer_return', Mail::l('Demande de retour produit'), array( '{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, '{email}' => $customer->email, '{id_order}' => (int)($message->id_order), '{message}' => $message->message), $to, $toName, $customer->email, $customer->firstname.' '.$customer->lastname);" dans le fichier orderFollowController.php Mais comment faire pour le client reçoit également une confirmation ? merci d'avance de votre aide ;-) 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