create new template email
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Thelia\Model;
|
namespace Thelia\Model;
|
||||||
|
|
||||||
|
use Thelia\Core\Template\Exception\ResourceNotFoundException;
|
||||||
use Thelia\Model\Base\Message as BaseMessage;
|
use Thelia\Model\Base\Message as BaseMessage;
|
||||||
use Propel\Runtime\Connection\ConnectionInterface;
|
use Propel\Runtime\Connection\ConnectionInterface;
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
@@ -74,13 +75,13 @@ class Message extends BaseMessage
|
|||||||
{
|
{
|
||||||
$body = false;
|
$body = false;
|
||||||
|
|
||||||
$mail_template_path = TemplateHelper::getInstance()->getActiveMailTemplate()->getAbsolutePath() . DS;
|
//$mail_template_path = TemplateHelper::getInstance()->getActiveMailTemplate()->getAbsolutePath() . DS;
|
||||||
|
|
||||||
// Try to get the body from template file, if a file is defined
|
// Try to get the body from template file, if a file is defined
|
||||||
if (! empty($template)) {
|
if (! empty($template)) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$body = $parser->render($mail_template_path . $template);
|
$body = $parser->render($template);
|
||||||
} catch (ResourceNotFoundException $ex) {
|
} catch (ResourceNotFoundException $ex) {
|
||||||
// Ignore this.
|
// Ignore this.
|
||||||
}
|
}
|
||||||
@@ -98,7 +99,7 @@ class Message extends BaseMessage
|
|||||||
$parser->assign('message_body', $body);
|
$parser->assign('message_body', $body);
|
||||||
|
|
||||||
// Render the layout file
|
// Render the layout file
|
||||||
$body = $parser->render($mail_template_path . $layout);
|
$body = $parser->render($layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $body;
|
return $body;
|
||||||
@@ -136,6 +137,7 @@ class Message extends BaseMessage
|
|||||||
*/
|
*/
|
||||||
public function buildMessage($parser, \Swift_Message $messageInstance)
|
public function buildMessage($parser, \Swift_Message $messageInstance)
|
||||||
{
|
{
|
||||||
|
$parser->setTemplateDefinition(TemplateHelper::getInstance()->getActiveMailTemplate());
|
||||||
$subject = $parser->fetch(sprintf("string:%s", $this->getSubject()));
|
$subject = $parser->fetch(sprintf("string:%s", $this->getSubject()));
|
||||||
$htmlMessage = $this->getHtmlMessageBody($parser);
|
$htmlMessage = $this->getHtmlMessageBody($parser);
|
||||||
$textMessage = $this->getTextMessageBody($parser);
|
$textMessage = $this->getTextMessageBody($parser);
|
||||||
|
|||||||
BIN
templates/email/default/assets/img/header.jpg
Normal file
BIN
templates/email/default/assets/img/header.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
templates/email/default/assets/img/logo.gif
Normal file
BIN
templates/email/default/assets/img/logo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
465
templates/email/default/email-layout.tpl
Normal file
465
templates/email/default/email-layout.tpl
Normal file
@@ -0,0 +1,465 @@
|
|||||||
|
{declare_assets directory='assets'}
|
||||||
|
{assign var="url_site" value="{config key="url_site"}"}
|
||||||
|
{assign var="company_name" value="{config key="store_name"}"}
|
||||||
|
{if not $company_name}
|
||||||
|
{assign var="company_name" value="{intl l='Thelia V2'}"}
|
||||||
|
{/if}
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<title>{block name="email-subject"}{/block}</title>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
{literal}
|
||||||
|
#outlook a{
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
.ReadMsgBody{
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.ExternalClass{
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.yshortcuts,a .yshortcuts,a .yshortcuts:hover,a .yshortcuts:active,a .yshortcuts:focus{
|
||||||
|
background-color:transparent !important;
|
||||||
|
border:none !important;
|
||||||
|
color:inherit !important;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
img{
|
||||||
|
border:0;
|
||||||
|
height:auto;
|
||||||
|
line-height:100%;
|
||||||
|
outline:none;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
table,td{
|
||||||
|
border-collapse:collapse !important;
|
||||||
|
mso-table-lspace:0pt;
|
||||||
|
mso-table-rspace:0pt;
|
||||||
|
}
|
||||||
|
#bodyTable,#bodyCell{
|
||||||
|
height:100% !important;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
|
#bodyCell{
|
||||||
|
padding:20px;
|
||||||
|
}
|
||||||
|
.templateContainer{
|
||||||
|
width:600px;
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
color:#202020;
|
||||||
|
display:block;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:26px;
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:bold;
|
||||||
|
line-height:100%;
|
||||||
|
letter-spacing:normal;
|
||||||
|
margin-top:0;
|
||||||
|
margin-right:0;
|
||||||
|
margin-bottom:10px;
|
||||||
|
margin-left:0;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
color:#404040;
|
||||||
|
display:block;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:20px;
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:bold;
|
||||||
|
line-height:100%;
|
||||||
|
letter-spacing:normal;
|
||||||
|
margin-top:0;
|
||||||
|
margin-right:0;
|
||||||
|
margin-bottom:10px;
|
||||||
|
margin-left:0;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color:#606060;
|
||||||
|
display:block;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:16px;
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:bold;
|
||||||
|
line-height:100%;
|
||||||
|
letter-spacing:normal;
|
||||||
|
margin-top:0;
|
||||||
|
margin-right:0;
|
||||||
|
margin-bottom:10px;
|
||||||
|
margin-left:0;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
h4{
|
||||||
|
color:#808080;
|
||||||
|
display:block;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:12px;
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:bold;
|
||||||
|
line-height:100%;
|
||||||
|
letter-spacing:normal;
|
||||||
|
margin-top:0;
|
||||||
|
margin-right:0;
|
||||||
|
margin-bottom:10px;
|
||||||
|
margin-left:0;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
#templatePreheader{
|
||||||
|
background-color:#f5f5f5;
|
||||||
|
border-top:10px solid #f5f5f5;
|
||||||
|
border-bottom:0;
|
||||||
|
}
|
||||||
|
.preheaderContent{
|
||||||
|
color:#707070;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:10px;
|
||||||
|
line-height:125%;
|
||||||
|
padding-top:10px;
|
||||||
|
padding-bottom:10px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
.preheaderContent a:link,.preheaderContent a:visited,.preheaderContent a .yshortcuts {
|
||||||
|
color:#FFFFFF;
|
||||||
|
font-weight:normal;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
#templateHeader{
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
border-top:10px solid #f5f5f5;
|
||||||
|
border-bottom:0;
|
||||||
|
}
|
||||||
|
.headerContent{
|
||||||
|
color:#202020;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:20px;
|
||||||
|
font-weight:bold;
|
||||||
|
line-height:100%;
|
||||||
|
padding-top:40px;
|
||||||
|
padding-right:0;
|
||||||
|
padding-bottom:20px;
|
||||||
|
padding-left:0;
|
||||||
|
text-align:left;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
.headerContent a:link,.headerContent a:visited,.headerContent a .yshortcuts {
|
||||||
|
color:#E1523D;
|
||||||
|
font-weight:normal;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
#templateBody{
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
border-top:0;
|
||||||
|
border-bottom:0;
|
||||||
|
}
|
||||||
|
.titleContentBlock{
|
||||||
|
background-color:#ffffff;
|
||||||
|
border-top:0px solid #F47766;
|
||||||
|
border-bottom:0px solid #B14031;
|
||||||
|
}
|
||||||
|
.titleContent{
|
||||||
|
color:#7a7a7a;
|
||||||
|
font-family:Arial;
|
||||||
|
font-size:24px;
|
||||||
|
font-weight:normal;
|
||||||
|
line-height:110%;
|
||||||
|
padding-top:5px;
|
||||||
|
padding-bottom:5px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
.bodyContentBlock{
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
border-top:0;
|
||||||
|
border-bottom:1px solid #E5E5E5;
|
||||||
|
}
|
||||||
|
.bodyContent{
|
||||||
|
color:#505050;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:16px;
|
||||||
|
line-height:150%;
|
||||||
|
padding-top:20px;
|
||||||
|
padding-bottom:20px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
.bodyContent a:link,.bodyContent a:visited,.bodyContent a .yshortcuts {
|
||||||
|
color:#E1523D;
|
||||||
|
font-weight:normal;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
.templateButton{
|
||||||
|
-moz-border-radius:5px;
|
||||||
|
-webkit-border-radius:5px;
|
||||||
|
background-color:#f49a17;
|
||||||
|
border:0;
|
||||||
|
border-radius:5px;
|
||||||
|
}
|
||||||
|
.templateButtonContent,.templateButtonContent a:link,.templateButtonContent a:visited,.templateButtonContent a .yshortcuts {
|
||||||
|
color:#FFFFFF;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:15px;
|
||||||
|
font-weight:bold;
|
||||||
|
letter-spacing:-.5px;
|
||||||
|
line-height:100%;
|
||||||
|
text-align:center;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
.bodyContent img{
|
||||||
|
display:inline;
|
||||||
|
height:auto;
|
||||||
|
max-width:600px;
|
||||||
|
}
|
||||||
|
body,#bodyTable{
|
||||||
|
background-color:#444444;
|
||||||
|
}
|
||||||
|
#templateFooter{
|
||||||
|
border-top:0;
|
||||||
|
}
|
||||||
|
.footerContent{
|
||||||
|
color:#808080;
|
||||||
|
font-family:Helvetica;
|
||||||
|
font-size:10px;
|
||||||
|
line-height:150%;
|
||||||
|
padding-top:20px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
.footerContent a:link,.footerContent a:visited,.footerContent a .yshortcuts {
|
||||||
|
color:#606060;
|
||||||
|
font-weight:normal;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
.footerContent img{
|
||||||
|
display:inline;
|
||||||
|
max-width:600px;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 480px){
|
||||||
|
body,table,td,p,a,li,blockquote{
|
||||||
|
-webkit-text-size-adjust:none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body{
|
||||||
|
width:auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table[class=templateContainer]{
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table[class=templateContainer]{
|
||||||
|
max-width:600px !important;
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
font-size:24px !important;
|
||||||
|
line-height:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2{
|
||||||
|
font-size:20px !important;
|
||||||
|
line-height:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3{
|
||||||
|
font-size:18px !important;
|
||||||
|
line-height:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4{
|
||||||
|
font-size:16px !important;
|
||||||
|
line-height:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table[id=templatePreheader]{
|
||||||
|
display:none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
img[id=headerImage]{
|
||||||
|
height:auto !important;
|
||||||
|
max-width:233px !important;
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[class=headerContent]{
|
||||||
|
font-size:20px !important;
|
||||||
|
line-height:150% !important;
|
||||||
|
padding-top:40px !important;
|
||||||
|
padding-right:10px !important;
|
||||||
|
padding-bottom:20px !important;
|
||||||
|
padding-left:10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
img[class=bodyImage]{
|
||||||
|
height:auto !important;
|
||||||
|
max-width:580px !important;
|
||||||
|
width:100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[class=titleContent]{
|
||||||
|
font-size:20px !important;
|
||||||
|
line-height:125% !important;
|
||||||
|
padding-right:10px;
|
||||||
|
padding-left:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[class=bodyContent]{
|
||||||
|
font-size:16px !important;
|
||||||
|
line-height:125% !important;
|
||||||
|
padding-right:10px;
|
||||||
|
padding-left:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[class=footerContent]{
|
||||||
|
font-size:14px !important;
|
||||||
|
line-height:150% !important;
|
||||||
|
padding-right:10px;
|
||||||
|
padding-left:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[class=footerContent] a{
|
||||||
|
display:block !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.preheaderContent a:link,.preheaderContent a:visited,.preheaderContent a .yshortcuts{
|
||||||
|
color:#f49a17;
|
||||||
|
}
|
||||||
|
.footerContent a:link,.footerContent a:visited,.footerContent a .yshortcuts{
|
||||||
|
color:#ffffff;
|
||||||
|
}
|
||||||
|
.bodyContent a:link,.bodyContent a:visited,.bodyContent a .yshortcuts{
|
||||||
|
color:#f49a17;
|
||||||
|
text-decoration:none;
|
||||||
|
font-weight:normal;
|
||||||
|
}
|
||||||
|
.templateButtonContent,.templateButtonContent a:link,.templateButtonContent a:visited,.templateButtonContent a .yshortcuts{
|
||||||
|
font-weight:normal;
|
||||||
|
}
|
||||||
|
{/literal}
|
||||||
|
</style></head>
|
||||||
|
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="margin: 0;padding: 0;background-color: #444444;">
|
||||||
|
<center>
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;margin: 0;padding: 0;background-color: #444444;border-collapse: collapse !important;height: 100% !important;width: 100% !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templatePreheader" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;background-color: #f5f5f5;border-top: 10px solid #f5f5f5;border-bottom: 0;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" class="templateContainer" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 600px;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="preheaderContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #707070;font-family: Helvetica;font-size: 10px;line-height: 125%;padding-top: 10px;padding-bottom: 10px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
{block name="email-intro"}{/block}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td valign="top" class="preheaderContent" style="padding-left: 20px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #707070;font-family: Helvetica;font-size: 10px;line-height: 125%;padding-top: 10px;padding-bottom: 10px;text-align: left;border-collapse: collapse !important;" width="200">
|
||||||
|
{block name="browser"}{intl l="Email not displaying correctly?"}<br><a href="{config key="url_site"}?view=email/register" target="_blank" style="color: #f49a17;font-weight: normal;text-decoration: underline;">{intl l="View it in your browser"}</a>.{/block}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templateHeader" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;background-color: #FFFFFF;border-top: 10px solid #f5f5f5;border-bottom: 0;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" class="templateContainer" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 600px;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td class="headerContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #202020;font-family: Helvetica;font-size: 20px;font-weight: bold;line-height: 100%;padding-top: 40px;padding-right: 0;padding-bottom: 20px;padding-left: 0;text-align: left;vertical-align: middle;border-collapse: collapse !important;">
|
||||||
|
{images file='assets/img/logo.gif'}<img src="{$asset_url}" alt="{$company_name}" border="0" style="border: 0px none;border-color: ;border-style: none;border-width: 0px;height: 75px;width: 135px;margin: 0;padding: 0;line-height: 100%;outline: none;text-decoration: none;" width="135" height="75">{/images}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templateBody" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;background-color: #FFFFFF;border-top: 0;border-bottom: 0;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="padding-top: 20px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" class="templateContainer" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 600px;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="10" cellspacing="0" width="100%" class="titleContentBlock" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;background-color: #ffffff;border-top: 0px solid #F47766;border-bottom: 0px solid #B14031;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="titleContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #7a7a7a;font-family: Arial;font-size: 24px;font-weight: normal;line-height: 110%;padding-top: 5px;padding-bottom: 5px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
{block name="email-title"}{/block}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="padding-bottom: 40px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="10" cellspacing="0" width="100%" class="bodyContentBlock" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;background-color: #FFFFFF;border-top: 0;border-bottom: 1px solid #E5E5E5;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td class="bodyContent" style="padding-bottom: 20px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #505050;font-family: Helvetica;font-size: 16px;line-height: 150%;padding-top: 20px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
{images file='assets/img/header.jpg'}<img class="bodyImage" src="{$asset_url}" alt="" border="0" style="border: 0px none;border-color: ;border-style: none;border-width: 0px;height: 188px;width: 580px;margin: 0;padding: 0;line-height: 100%;outline: none;text-decoration: none;display: inline;max-width: 600px;" width="580" height="188">{/images}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="bodyContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #505050;font-family: Helvetica;font-size: 14px;line-height: 150%;padding-top: 0px;padding-bottom: 20px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
{block name="email-content"}{/block}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="templateFooter" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-top: 0;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td align="center" valign="top" style="padding-bottom: 40px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;border-collapse: collapse !important;">
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" class="templateContainer" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 600px;border-collapse: collapse !important;">
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="footerContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #808080;font-family: Helvetica;font-size: 10px;line-height: 150%;padding-top: 20px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
<a href="http://twitter.com/theliaecommerce" style="color: #ffffff;font-weight: normal;text-decoration: underline;">Follow on Twitter</a> <a href="http://www.facebook.com/theliaecommerce" style="color: #ffffff;font-weight: normal;text-decoration: underline;">Friend on Facebook</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="top" class="footerContent" style="mso-table-lspace: 0pt;mso-table-rspace: 0pt;color: #808080;font-family: Helvetica;font-size: 10px;line-height: 150%;padding-top: 20px;text-align: left;border-collapse: collapse !important;">
|
||||||
|
<strong>{intl l="Our mailing address is:"}</strong>
|
||||||
|
<br>
|
||||||
|
Street name of my business 75000 City, France
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<em>{intl l="Copyright"} © {'Y'|date} {$company_name}, {intl l="All rights reserved."}</em>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,107 +1,121 @@
|
|||||||
{loop name="order.invoice" type="order" id=$order_id customer="*"}
|
{extends file="email-layout.tpl"}
|
||||||
{loop name="currency.order" type="currency" id=$CURRENCY}
|
|
||||||
{assign "orderCurrency" $SYMBOL}
|
{* Open in browser *}
|
||||||
{/loop}
|
{block name="browser"}{/block}
|
||||||
{loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"}
|
|
||||||
{assign var="customer_ref" value=$REF}
|
{* Subject *}
|
||||||
{/loop}
|
{block name="email-subject"}Your order confirmation Nº {$order_ref}{/block}
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
{* Title *}
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr">
|
{block name="email-title"}Thank you for your order!{/block}
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
{* Content *}
|
||||||
<title>{intl l="Courriel de confirmation de commande de %uil" url={config key="url_site"}}</title>
|
{block name="email-content"}
|
||||||
{literal}
|
|
||||||
<style type="text/css">body {font-family: Arial, Helvetica, sans-serif; font-size:100%; text-align:center;}#liencompte {margin:15px 0 ; text-align:center; font-size:10pt;}#wrapper {width:480pt;margin:0 auto;}#entete {padding-bottom:20px;margin-bottom:10px;border-bottom:1px dotted #000;}#logotexte {float:left;width:180pt;height:75pt;border:1pt solid #000;font-size:18pt;text-align:center;}#logoimg{float:left;}#h2 {margin:0;padding:0;font-size:140%;text-align:center;}#h3 {margin:0;padding:0;font-size:120%;text-align:center;}#tableprix {margin:0 auto;border-collapse:collapse;font-size:80%;}#intitules {font-weight:bold;text-align:center;}#ref {width:65pt;border:1px solid #000;}#designation {width:278pt;border:1px solid #000;}#pu {width:65pt;border:1px solid #000;}#qte {width:60pt;border:1px solid #000;}.ligneproduit{font-weight:normal;}.cellref{text-align:right;padding-right:6pt;border:1px solid #000;}.celldsg{text-align:left;padding-left:6pt;border:1px solid #000;}.cellpu{text-align:right;padding-right:6pt;border:1px solid #000;}.cellqte{text-align:right;padding-right:6pt;border:1px solid #000;}.lignevide{border-bottom:1px solid #000;}.totauxtitre{text-align:right;padding-right:6pt;border-left:1px solid #000;}.totauxcmdtitre{text-align:right;padding-right:6pt;border-left:1px solid #000;border-bottom:1px solid #000;}.totauxprix{text-align:right;padding-right:6pt;border:1px solid #000;}.blocadresses{display:inline;float:left;width:228pt;margin:12pt 4pt 12pt 5pt;font-size:80%;line-height:18pt;text-align:left;border:1px solid #000;}.stylenom{margin:0;padding:0 0 0 10pt;border-bottom:1px solid #000;}.styleliste{margin:0;padding:0 0 0 10pt;}</style>
|
{loop name="order.invoice" type="order" id=$order_id customer="*"}
|
||||||
{/literal}
|
{loop name="currency.order" type="currency" id=$CURRENCY}
|
||||||
</head>
|
{assign "orderCurrencySymbol" $SYMBOL}
|
||||||
<body>
|
{assign var="orderCurrencyIsoCode" value=$ISOCODE}
|
||||||
<div id="wrapper">
|
{/loop}
|
||||||
<div id="entete"><h1 id="logotexte">{config key="company_name"}</h1>
|
{loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"}
|
||||||
<h2 id="info">{intl l="Confirmation de commande"}</h2>
|
{assign var="customerRef" value=$REF}
|
||||||
<h3 id="commande">N° {$REF} du <span style="font-size:80%">{format_date date=$INVOICE_DATE output="date"}</span></h3>
|
|
||||||
</div>
|
|
||||||
<table id="tableprix" border="0">
|
|
||||||
<tbody>
|
|
||||||
<tr id="intitules">
|
|
||||||
<th id="ref">{intl l="Référence"}</th>
|
|
||||||
<th id="designation">{intl l="Désignation"}</th>
|
|
||||||
<th id="pu">{intl l="P.U. %currency" currency=$orderCurrency}</th>
|
|
||||||
<th id="qte">{intl l="Qté"}</th>
|
|
||||||
</tr>
|
|
||||||
{loop type="order_product" name="order-products" order=$ID}
|
|
||||||
{if $WAS_IN_PROMO == 1}
|
|
||||||
{assign "realPrice" $PROMO_PRICE}
|
|
||||||
{assign "realTax" $PROMO_PRICE_TAX}
|
|
||||||
{assign "realTaxedPrice" $TAXED_PROMO_PRICE}
|
|
||||||
{else}
|
|
||||||
{assign "realPrice" $PRICE}
|
|
||||||
{assign "realTax" $PRICE_TAX}
|
|
||||||
{assign "realTaxedPrice" $TAXED_PRICE}
|
|
||||||
{/if}
|
|
||||||
<tr class="ligneproduit">
|
|
||||||
<td class="cellref">{$REF}</td>
|
|
||||||
<td class="celldsg">{$TITLE}
|
|
||||||
{ifloop rel="combinations"}
|
|
||||||
{loop type="order_product_attribute_combination" name="combinations" order_product=$ID}
|
|
||||||
{$ATTRIBUTE_TITLE} - {$ATTRIBUTE_AVAILABILITY_TITLE}<br>
|
|
||||||
{/loop}
|
|
||||||
{/ifloop}
|
|
||||||
</td>
|
|
||||||
<td class="cellpu">{$orderCurrency} {$realTaxedPrice}</td>
|
|
||||||
<td class="cellqte">{$QUANTITY}</td>
|
|
||||||
</tr>
|
|
||||||
{/loop}
|
{/loop}
|
||||||
<!-- insere une ligne vide -->
|
|
||||||
<tr class="ligneproduit">
|
Here are the details of your purchase:<br /><br />
|
||||||
<td class="lignevide" colspan="4"> </td>
|
|
||||||
</tr>
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||||
<tr class="ligneproduit">
|
<tr>
|
||||||
<td class="totauxtitre" colspan="3">{intl l="Montant total avant remise %currency" currency=$orderCurrency}</td>
|
<td valign="top" width="55%">
|
||||||
<td class="totauxprix">{$orderCurrency} {$TOTAL_TAXED_AMOUNT - $POSTAGE}</td>
|
<strong>Delivery address:</strong><br>
|
||||||
</tr>
|
{loop type="order_address" name="delivery_address" id=$DELIVERY_ADDRESS}
|
||||||
<tr class="ligneproduit">
|
{$FIRSTNAME} {$LASTNAME}<br />
|
||||||
<td class="totauxtitre" colspan="3">Port €</td>
|
{$ADDRESS1}<br>
|
||||||
<td class="totauxprix">{$orderCurrency} {$POSTAGE}</td>
|
{if $ADDRESS2 != ""}{$ADDRESS2}<br />{/if}
|
||||||
</tr>
|
{if $ADDRESS3 != ""}{$ADDRESS3}<br />{/if}
|
||||||
<tr class="ligneproduit">
|
{$CITY}<br />
|
||||||
<td class="totauxcmdtitre" colspan="3">{intl l="Montant total de la commande%currency" currency=$orderCurrency}</td>
|
{$ZIPCODE}, {loop type="country" name="country_delivery" id=$COUNTRY}{$TITLE}{/loop}<br />
|
||||||
<td class="totauxprix">{$orderCurrency} {$TOTAL_TAXED_AMOUNT}</td>
|
{/loop}
|
||||||
</tr>
|
</td>
|
||||||
</tbody>
|
<td valign="top">
|
||||||
</table>
|
<strong>Billing address:</strong><br />
|
||||||
<div class="blocadresses">
|
{loop type="order_address" name="invoice_address" id=$INVOICE_ADDRESS}
|
||||||
<p class="stylenom">{loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{intl l="LIVRAISON : %module" module=$TITLE}{/loop}</p>
|
{$FIRSTNAME} {$LASTNAME}<br />
|
||||||
{loop type="order_address" name="delivery_address" id=$INVOICE_ADDRESS}
|
{$ADDRESS1}<br>
|
||||||
<p class="styleliste">{intl l="N° de client : %ref" ref=$customer_ref}</p>
|
{if $ADDRESS2 != ""}{$ADDRESS2}<br />{/if}
|
||||||
<p class="styleliste">{intl l="Nom :"}
|
{if $ADDRESS3 != ""}{$ADDRESS3}<br />{/if}
|
||||||
{loop type="title" name="order-invoice-address-title" id=$TITLE}{$LONG}{/loop} {$FIRSTNAME} {$LASTNAME}</p>
|
{$CITY}<br />
|
||||||
<p class="styleliste">{intl l="N° et rue :"}
|
{$ZIPCODE}, {loop type="country" name="country_delivery" id=$COUNTRY}{$TITLE}{/loop}<br />
|
||||||
{$ADDRESS1}</p>
|
{/loop}
|
||||||
<p class="styleliste">{intl l="Complément : "}{$ADDRESS2}
|
</td>
|
||||||
{$ADDRESS3}</p>
|
</tr>
|
||||||
<p class="styleliste">{intl l="Code postal : %zip" zip=$ZIPCODE}</p>
|
</table>
|
||||||
<p class="styleliste">{intl l="Ville : %city" city=$CITY}</p>
|
|
||||||
<p class="styleliste">{loop type="country" name="country_delivery" id=$COUNTRY}{intl l="Pays : %name" name=$TITLE}{/loop}</p>
|
<br />
|
||||||
</div>
|
|
||||||
|
<p>
|
||||||
|
Order Total: {$TOTAL_TAXED_AMOUNT} {$orderCurrencySymbol} <span style="font-size:90%;color:#777">{$orderCurrencyIsoCode}</span><br />
|
||||||
|
Order Number: {$REF}<br />
|
||||||
|
Paid With: {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}<br />
|
||||||
|
Purchase Date: {format_date date=$CREATE_DATE output="date"}<br />
|
||||||
|
Delivery method: {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}<br />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:13px;line-height:2em">
|
||||||
|
<tr style="color:#999;font-size:11px">
|
||||||
|
<td style="color:#999;border-bottom:1px solid #000">What You Purchased</td>
|
||||||
|
<td align="right" style="color:#999;border-bottom:1px solid #000">Price in {$orderCurrencyIsoCode}</td>
|
||||||
|
</tr>
|
||||||
|
{loop type="order_product" name="order-products" order=$ID}
|
||||||
|
{if $WAS_IN_PROMO == 1}
|
||||||
|
{assign "realPrice" $PROMO_PRICE}
|
||||||
|
{assign "realTax" $PROMO_PRICE_TAX}
|
||||||
|
{assign "realTaxedPrice" $TAXED_PROMO_PRICE}
|
||||||
|
{else}
|
||||||
|
{assign "realPrice" $PRICE}
|
||||||
|
{assign "realTax" $PRICE_TAX}
|
||||||
|
{assign "realTaxedPrice" $TAXED_PRICE}
|
||||||
|
{/if}
|
||||||
|
<tr>
|
||||||
|
<td style="border-bottom:1px solid #000">
|
||||||
|
<b>{$TITLE}</b> <i>({$REF})</i>
|
||||||
|
{ifloop rel="combinations"}<br />
|
||||||
|
{loop type="order_product_attribute_combination" name="combinations" order_product=$ID}
|
||||||
|
<span style="color:#999;display:block;font-size:11px;line-height:1.2">* {$ATTRIBUTE_TITLE}: {$ATTRIBUTE_AVAILABILITY_TITLE}</span>
|
||||||
|
{/loop}
|
||||||
|
{/ifloop}
|
||||||
|
</td>
|
||||||
|
<td align="right" style="border-bottom:1px solid #000">
|
||||||
|
{$QUANTITY} x {$realTaxedPrice} {$orderCurrencySymbol}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/loop}
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="text-align:right">Total</td>
|
||||||
|
<td align="right" style="text-align:right">{$TOTAL_TAXED_AMOUNT - $POSTAGE} {$orderCurrencySymbol}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="text-align:right">Shipping:</td>
|
||||||
|
<td align="right" style="text-align:right">{$POSTAGE} {$orderCurrencySymbol}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="right" style="text-align:right"><strong>Order Total</strong></td>
|
||||||
|
<td align="right" style="text-align:right"><strong>{$TOTAL_TAXED_AMOUNT} {$orderCurrencySymbol}</strong></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
{/loop}
|
{/loop}
|
||||||
<div class="blocadresses">
|
|
||||||
<p class="stylenom">{loop name="payment-module" type="module" id=$PAYMENT_MODULE}{intl l="FACTURATION : paiement par %module" module=$TITLE}{/loop}</p>
|
<br />
|
||||||
{loop type="order_address" name="delivery_address" id=$DELIVERY_ADDRESS}
|
|
||||||
<p class="styleliste">N° de client : {$customer_ref}</p>
|
<h2>Support</h2>
|
||||||
<p class="styleliste">Nom :
|
For any questions, or concerns, feel free to contact <a href="mailto:support@yourdomain.com" style="color:#3c69c1;text-decoration:none" target="_blank">support@yourdomain.com</a>.<br /><br />
|
||||||
{loop type="title" name="order-invoice-address-title" id=$TITLE}{$LONG}{/loop} {$FIRSTNAME} {$LASTNAME}</p>
|
<b>Our contact us at:</b> <br />
|
||||||
<p class="styleliste">{intl l="N° et rue :"}
|
Thelia V2<br>
|
||||||
{$ADDRESS1}</p>
|
Street name of my business<br />
|
||||||
<p class="styleliste">{intl l="Complément : "}{$ADDRESS2}
|
City<br />
|
||||||
{$ADDRESS3}</p>
|
75000, France
|
||||||
<p class="styleliste">{intl l="Code postal : %zip" zip=$ZIPCODE}</p>
|
|
||||||
<p class="styleliste">{intl l="Ville : %city" city=$CITY}</p>
|
<br />
|
||||||
<p class="styleliste">{loop type="country" name="country_delivery" id=$COUNTRY}{intl l="Pays : %name" name=$TITLE}{/loop}</p>
|
<br />
|
||||||
</div>
|
Thanks,<br />
|
||||||
{/loop}
|
The Thelia V2 team
|
||||||
<p id="liencompte">{intl l="Le suivi de votre commande est disponible dans la rubrique mon compte sur <a href=\"%url\">%url</a>" url={config key="url_site"}}</p>
|
{/block}
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/loop}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user