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 @@   -Ihre Nachricht: {message} + + Ihre Nachricht: {message}

+ Bestellnummer : {id_order}

+ Befestigung : {attached_file} +   diff --git a/mails/de/contact_form.txt b/mails/de/contact_form.txt index 34b119529..a23c4f5c3 100644 --- a/mails/de/contact_form.txt +++ b/mails/de/contact_form.txt @@ -1,6 +1,10 @@ Ihre Nachricht wurde korrekt an unseren Kundendienst weitergeleitet. Ihre Nachricht: {message} + +Bestellnummer : {id_order} + +Befestigung : {attached_file} Wir werden so schnell wie möglich antworten. diff --git a/mails/en/contact_form.html b/mails/en/contact_form.html index 086dea10c..70bed09a2 100644 --- a/mails/en/contact_form.html +++ b/mails/en/contact_form.html @@ -19,7 +19,9 @@ Your message has been sent successfully.

- Message: {message} + Message: {message}

+ Order ID : {id_order}

+ Attached file : {attached_file}   diff --git a/mails/en/contact_form.txt b/mails/en/contact_form.txt index 6d7b1913e..3b5cf228b 100644 --- a/mails/en/contact_form.txt +++ b/mails/en/contact_form.txt @@ -6,6 +6,10 @@ Your message: {message} +Order ID : {id_order} + +Attached file : {attached_file} + We will respond as soon as possible. Regards, diff --git a/mails/es/contact_form.html b/mails/es/contact_form.html index 7e55d4da0..e927f057d 100644 --- a/mails/es/contact_form.html +++ b/mails/es/contact_form.html @@ -1,40 +1,39 @@ - - Message from {shop_name} + + Message from {shop_name} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
{shop_name}
 
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™
+ + + + + + + + + + + + + + + + + + +
+ {shop_name} +
 
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™ +
- \ No newline at end of file + diff --git a/mails/es/contact_form.txt b/mails/es/contact_form.txt index 194d83491..07187f686 100644 --- a/mails/es/contact_form.txt +++ b/mails/es/contact_form.txt @@ -4,6 +4,9 @@ Tu mensaje: {message} +Número de pedido : {id_order} + +fijación : {attached_file} Te responderemos cuanto antes. diff --git a/mails/fr/contact_form.html b/mails/fr/contact_form.html index 352f6be1b..c52ef811c 100644 --- a/mails/fr/contact_form.html +++ b/mails/fr/contact_form.html @@ -18,7 +18,10 @@   - Votre message: {message} + Votre message a bien été envoyé.

+ Message : {message}

+ Numéro de commande : {id_order}

+ Fichié attaché : {attached_file}   diff --git a/mails/fr/contact_form.txt b/mails/fr/contact_form.txt index 30743998c..a7884e887 100644 --- a/mails/fr/contact_form.txt +++ b/mails/fr/contact_form.txt @@ -4,6 +4,9 @@ Votre message: {message} +Numéro de commande : {id_order} + +Fichié attaché : {attached_file} Nous vous répondrons dés que possible. diff --git a/mails/it/contact_form.html b/mails/it/contact_form.html index 8edefaa02..cb9e0d034 100644 --- a/mails/it/contact_form.html +++ b/mails/it/contact_form.html @@ -20,7 +20,11 @@ -Il tuo messaggio: {message} + + Il tuo messaggio: {message}

+ Numero d'ordine : {id_order}

+ Attaccamento : {attached_file} + diff --git a/mails/it/contact_form.txt b/mails/it/contact_form.txt index f88be8d4b..c2ff47cac 100644 --- a/mails/it/contact_form.txt +++ b/mails/it/contact_form.txt @@ -4,6 +4,9 @@ Il tuo messaggio: {message} +Numero d'ordine : {id_order} + +Attaccamento : {attached_file} Risponderemo quanto prima.