diff --git a/controllers/front/ContactController.php b/controllers/front/ContactController.php index 7d525b4c7..f429d861d 100644 --- a/controllers/front/ContactController.php +++ b/controllers/front/ContactController.php @@ -117,11 +117,17 @@ class ContactControllerCore extends FrontController } if (!empty($contact->email)) { + $mailVarList = array( + '{email}' => $from, + '{message}' => stripslashes($message), + '{id_order}' => (int)Tools::getValue('id_order'), + '{attached_file}' => $_FILES['fileUpload']['name'] ? $_FILES['fileUpload']['name'] : ''); + if (Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form'), - array('{email}' => $from, '{message}' => stripslashes($message)), $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), - $fileAttachment) - && Mail::Send($this->context->language->id, 'contact_form', Mail::l('Your message has been correctly sent'), array('{message}' => stripslashes($message)), $from)) - $this->context->smarty->assign('confirmation', 1); + $mailVarList, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), + $fileAttachment) && + Mail::Send($this->context->language->id, 'contact_form', Mail::l('Your message has been correctly sent'), $mailVarList, $from)) + $this->context->smarty->assign('confirmation', 1); else $this->errors[] = Tools::displayError('An error occurred while sending message.'); } diff --git a/mails/de/contact_form.html b/mails/de/contact_form.html index fb6288278..318ee66b6 100644 --- a/mails/de/contact_form.html +++ b/mails/de/contact_form.html @@ -20,7 +20,11 @@
| - |
| Your message has been correctly sent to our Customer Service. | -
| - |
| Your message: {message} | -
| - |
| We will answer as soon as possible. | -
| - |
| {shop_name} powered with PrestaShop™ | -
|
+ |
+
| Your message to {shop_name} Customer Service | +
|
+ Your message has been sent successfully. + mensaje: {message} + Número de pedido : {id_order} + fijación : {attached_file} + |
+
| We will answer as soon as possible. | +
| + {shop_name} powered by PrestaShop™ + | +