64 lines
3.6 KiB
Smarty
64 lines
3.6 KiB
Smarty
{extends $extend_template|default:"email/base.tpl"}
|
|
|
|
{block email_content}
|
|
{block order_items}
|
|
{if strpos($body.body, '{POLOZKY_OBJEDNAVKY}')}
|
|
{$items = $order->fetchItems()}
|
|
{capture assign=items}
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;margin-bottom: 20px;" class="table-products">
|
|
<caption style="padding: 7px 0;border-bottom: 2px solid #f2f4f8;font-weight: 700;text-align:left;">{t}Seznam objednaného zboží{/t}:</caption>
|
|
{foreach $items as $item}
|
|
<tr>
|
|
<td style="border-bottom:1px solid #f2f4f8;padding: 7px 7px 7px 0;">
|
|
{if $item.id_product}
|
|
<a href="{url s='redir' type='product' id=$item.id_product absolute="1"}">{$item.descr}</a>
|
|
{else}
|
|
{$item.descr}
|
|
{/if}
|
|
</td>
|
|
<td style="border-bottom:1px solid #f2f4f8;padding: 7px 7px 7px 0;text-align: right;white-space: nowrap;">{$item.pieces} {t}ks{/t}</td>
|
|
<td style="border-bottom:1px solid #f2f4f8;padding: 7px 0;text-align: right;white-space: nowrap;">{$item.total_price.value_with_vat_no_rounding|format_price:"ceil=no;decimal=dynamic"}</td>
|
|
</tr>
|
|
{/foreach}
|
|
<tr>
|
|
<td style="border-top:1px solid #f2f4f8;padding: 7px 7px 7px 0;font-weight: 700;">{t}Celková cena objednaného zboží je{/t}:</td>
|
|
<td colspan="2" style="border-top:1px solid #f2f4f8;padding: 7px 0;text-align: right;font-weight: 700;white-space: nowrap;">{$order.total_price_array.value_with_vat|format_price:"ceil=no;decimal=dynamic"}</td>
|
|
</tr>
|
|
</table>
|
|
{/capture}
|
|
{$body.body = str_replace('{POLOZKY_OBJEDNAVKY}', $items, $body.body)}
|
|
{/if}
|
|
{/block}
|
|
{block order_coupons}
|
|
{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 #f2f4f8;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 #f2f4f8;padding: 7px 7px 7px 0;">
|
|
{$items[$key]['descr']}, {t}platnost do{/t} {$coupon.date_to|format_date:'admin'}
|
|
</td>
|
|
<td style="border-bottom:1px solid #f2f4f8;padding: 7px 7px 7px 0;text-align: right;white-space: nowrap;">{$coupon.code}</td>
|
|
<td style="border-bottom:1px solid #f2f4f8;padding: 7px 0;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|default:"#1089e6"}; 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}
|
|
{/block}
|
|
{$body.body nofilter}
|
|
{/block}
|