first commit
This commit is contained in:
138
web/templates/koza/email/base.tpl
Normal file
138
web/templates/koza/email/base.tpl
Normal file
@@ -0,0 +1,138 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
{block "email-vars"}
|
||||
{$emailVars=['colorPrimary'=>'#2aa67c','colorHeader'=>'#1d1e24','background'=>'#f2f4f8']}
|
||||
{/block}
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
|
||||
<title>{$dbcfg.index_title}</title>
|
||||
|
||||
<style type="text/css" media="all">
|
||||
body {
|
||||
color: #3e3e3e;
|
||||
font-size: 14px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
color: {$emailVars.colorPrimary};
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 22px;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#content p {
|
||||
color: #3e3e3e;
|
||||
font-size: 14px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 22px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
#content p a {
|
||||
color: {$emailVars.colorPrimary};
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#content .bye {
|
||||
color: #5d5d5d;
|
||||
}
|
||||
|
||||
.btn {
|
||||
border-color: {$emailVars.colorPrimary} !important;
|
||||
}
|
||||
|
||||
.btn a {
|
||||
color: {$emailVars.colorPrimary} !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 700px) {
|
||||
table[class="wrapper"] {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* outlook */
|
||||
p.MsoNormal {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
{block "email-css-append"}{/block}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body bgcolor="{$emailVars.background|default:'#f2f4f8'}" style="background: {$emailVars.background|default:'#f2f4f8'};">
|
||||
|
||||
{block "email-top"}
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="{$emailVars.background|default:'#f2f4f8'}" style="background: {$emailVars.background|default:'#f2f4f8'};">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td style="padding-top: 50px;" width="680">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top:10px; background: {$emailVars.colorHeader};"
|
||||
bgcolor="{$emailVars.colorHeader}" class="wrapper">
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid {$emailVars.background|default:'#f2f4f8'}; padding: 30px 50px 20px;text-align: left;" align="left">
|
||||
<a href="{$cfg.Addr.full}" title="{$dbcfg.shop_firm_name}">
|
||||
{block "email-logo"}
|
||||
<img src="{static_url url="/templates/images/logo.png" absolute=1}" alt="{$dbcfg.shop_firm_name}"
|
||||
style="border:0;display: block;margin-bottom: 20px;" class="img-responsive logo"/>
|
||||
{/block}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/block}
|
||||
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="{$emailVars.background|default:'#f2f4f8'}" style="background: {$emailVars.background|default:'#f2f4f8'};">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td width="680" style="padding-bottom: 50px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-top:10px;background: #ffffff" bgcolor="#ffffff" class="wrapper">
|
||||
|
||||
<tr>
|
||||
<td align="left" style="text-align: left; border-bottom: 1px solid {$emailVars.background|default:'#f2f4f8'}; padding: 30px 50px;" id="content">
|
||||
{block email_hello}
|
||||
{if $body.header}
|
||||
{$body.header nofilter}
|
||||
{else}
|
||||
<p>{t}Dobrý den{/t},</p>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block email_content}
|
||||
|
||||
{/block}
|
||||
|
||||
{block email_bye}
|
||||
{if $body.footer}
|
||||
{$body.footer nofilter}
|
||||
{else}
|
||||
<p class="bye">
|
||||
{t}S pozdravem{/t} <a href="{$cfg.Addr.full}">{$dbcfg.shop_firm_name}</a>
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
67
web/templates/koza/email/order.tpl
Normal file
67
web/templates/koza/email/order.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
{extends "email/base.tpl"}
|
||||
|
||||
{block email_hello}
|
||||
{$body.header nofilter}
|
||||
{/block}
|
||||
|
||||
{block email_content}
|
||||
{if strpos($body.body, '{POLOZKY}')}
|
||||
{$items = $order->fetchItems()}
|
||||
{capture assign=items}
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-family: arial, helvetica, sans-serif; font-size: 12px;border-collapse: collapse;margin-bottom: 20px;">
|
||||
{foreach $items as $item}
|
||||
{$set = ""}
|
||||
{if $item.product}
|
||||
{$item.product->fetchParameters()}
|
||||
{$set = $item.product.param.22.value}
|
||||
{/if}
|
||||
<tr>
|
||||
<td colspan="4" style="padding: 10px 2px 3px; font-weight: 700;">{$item.descr} <span style="padding: 10px 2px 3px; font-weight: 100;">{$set}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #e5e5e5;padding: 3px 2px 7px;"><strong>ID:</strong> {$item.id_product}</td>
|
||||
<td style="border-bottom: 1px solid #e5e5e5;padding: 3px 2px 7px;"><strong>EAN:</strong> {$item.ean}</td>
|
||||
<td style="border-bottom: 1px solid #e5e5e5;padding: 3px 2px 7px;" align="right">{$item.pieces} {t}ks{/t}</td>
|
||||
<td style="border-bottom:1px solid #e5e5e5;padding: 3px 2px 7px;white-space: nowrap;" align="right">{$item.piece_price.value_without_vat|format_price:"ceil=no"}/{t}ks bez DPH{/t}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/capture}
|
||||
{$body.body = str_replace('{POLOZKY}', $items, $body.body)}
|
||||
{/if}
|
||||
|
||||
{if strpos($body.body, '{POUKAZY}')}
|
||||
{$items = $order->fetchItems()}
|
||||
{$cf = $order->getSecurityCode()}
|
||||
{get_order_coupons order=$order assign='order_coupons'}
|
||||
{capture assign=vouchers}
|
||||
{if $order_coupons}
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;margin-bottom: 20px;" class="table-vouchers">
|
||||
<caption style="padding: 7px 0;border-bottom: 2px solid #e5e5e5;font-weight: 700;text-align:left;">{t}Dárkové poukazy{/t}:</caption>
|
||||
{foreach $order_coupons as $key => $coupons}
|
||||
{foreach $coupons as $coupon}
|
||||
<tr>
|
||||
<td style="border-bottom:1px solid #e5e5e5;padding: 3px 2px 7px;;">
|
||||
{$items[$key]['descr']}, {t}platnost do{/t} {$coupon.date_to|format_date:'admin'}
|
||||
</td>
|
||||
<td style="border-bottom:1px solid #e5e5e5;padding:3px 2px 7px;;text-align: right;white-space: nowrap;">{t}Kód{/t} {$coupon.code}</td>
|
||||
<td style="border-bottom:1px solid #e5e5e5;padding:3px 2px 7px;;text-align: right;white-space: nowrap;">
|
||||
{$coupon_url = path('kupshop_orderingbundle_pdfcoupon', ['id_order' => $order.id, 'id_coupon' => $coupon.id, 'cf' => $cf], 0)}
|
||||
<a href="{$coupon_url}" style="color: {$emailVars.colorPrimary}; font-weight: 700; text-decoration: none;
|
||||
text-transform: uppercase;" class="link">{t}Zobrazit{/t}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/capture}
|
||||
{$body.body = str_replace('{POUKAZY}', $vouchers, $body.body)}
|
||||
{/if}
|
||||
|
||||
{$body.body nofilter}
|
||||
{/block}
|
||||
|
||||
{block email_bye}
|
||||
{$body.footer nofilter}
|
||||
{/block}
|
||||
Reference in New Issue
Block a user