[-] BO : Fixed bug #PSFV-363. The mails are more detailed for the customer

This commit is contained in:
vSchoener
2012-01-12 14:56:53 +00:00
parent 721a108398
commit 300bf8bfc7
11 changed files with 76 additions and 41 deletions
+10 -4
View File
@@ -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.');
}
+5 -1
View File
@@ -20,7 +20,11 @@
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Ihre Nachricht: {message}</td>
<td align="left">
Ihre Nachricht: {message}<br /><br />
Bestellnummer : {id_order}<br /><br />
Befestigung : {attached_file}
</td>
</tr>
<tr>
<td>&nbsp;</td>
+4
View File
@@ -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.
+3 -1
View File
@@ -19,7 +19,9 @@
<tr>
<td align="left">
Your message has been sent successfully.<br /><br />
Message: {message}
Message: {message}<br /><br />
Order ID : {id_order}<br /><br />
Attached file : {attached_file}
</td>
</tr>
<tr><td>&nbsp;</td></tr>
+4
View File
@@ -6,6 +6,10 @@ Your message:
{message}
Order ID : {id_order}
Attached file : {attached_file}
We will respond as soon as possible.
Regards,
+32 -33
View File
@@ -1,40 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Message from {shop_name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">
<tbody>
<tr>
<td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Your message has been correctly sent to our Customer Service.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="left">Your message: {message}</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="background-color: #db3484; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">We will answer as soon as possible.</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: #db3484; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered with <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop&trade;</a></td>
</tr>
</tbody>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
<tr>
<td align="left">
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Your message to {shop_name} Customer Service</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
Your message has been sent successfully.<br /><br />
mensaje: {message}<br /><br />
Número de pedido : {id_order}<br /><br />
fijación : {attached_file}
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">We will answer as soon as possible.</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
</td>
</tr>
</table>
</body>
</html>
</html>
+3
View File
@@ -4,6 +4,9 @@ Tu mensaje:
{message}
Número de pedido : {id_order}
fijación : {attached_file}
Te responderemos cuanto antes.
+4 -1
View File
@@ -18,7 +18,10 @@
<tr><td>&nbsp;</td></tr>
<tr>
<td align="left">
Votre message: {message}
Votre message a bien été envoyé.<br /><br />
Message : {message}<br /><br />
Numéro de commande : {id_order}<br /><br />
Fichié attaché : {attached_file}
</td>
</tr>
<tr><td>&nbsp;</td></tr>
+3
View File
@@ -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.
+5 -1
View File
@@ -20,7 +20,11 @@
<td></td>
</tr>
<tr>
<td align="left">Il tuo messaggio: {message}</td>
<td align="left">
Il tuo messaggio: {message}<br /><br />
Numero d'ordine : {id_order}<br /><br />
Attaccamento : {attached_file}
</td>
</tr>
<tr>
<td></td>
+3
View File
@@ -4,6 +4,9 @@ Il tuo messaggio:
{message}
Numero d'ordine : {id_order}
Attaccamento : {attached_file}
Risponderemo quanto prima.