{% capture email_title %}Olá, {{ customer.first_name }}! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
Recebemos o seu pedido <b>{{ order_name }}</b>. O código de rastreio foi postado</b>. <br><br>Abaixo, você pode conferir o resumo da sua compra, mas também é possivel <a href="https://latviamodas.com/pages/rastreio?email=codigoderastreio&order={{ fulfillment.tracking_numbers.first }}" target="_blank" title="Rastreino do Produto">acompanhar o seu pedido</a> em nosso site. <br><br>Obrigado por comprar na {{ shop.name }}
{% endif %}
{% endcapture %}
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
<style>
.button__cell { background: #48bb78; border-radius: 1000px }
a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
.shop-name__cell {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #48bb78;
padding: 3em 0;
text-align: center;
}
.shop-name__cell p {
color: white;
letter-spacing: 0.1em;
font-size: 1.125rem;
font-weight: 700;
}
.email_body a {
color: #48bb78;
}
.main-action-cell {
padding: 1rem .5rem;
background-color: #c6f6d5;
}
.main-action-cell-tr {
display: flex;
flex-direction: column;
padding: 1em;
}
.button__cell {
width: 100%;
max-width: 256px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.button__cell-text {
font-size: .875rem;
}
.button__text {
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.link__cell {
color: #5a5a5a;
font-size: .875rem;
letter-spacing: 0.1em;
}
.secondary-action-cell {
padding-top: 0 !important;
margin-top: 0 !important;
}
.order-list__item__cell {
padding: 5px 0 !important;
}
.order-list__product-description-cell,
.order-list__item__cell {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 0 !important;
}
.order-list__item__cell table tbody tr {
display: flex;
align-items: center;
justify-content: space-between;
}
.subtotal-lines {
margin: 0 !important;
}
.section__cell {
padding: 0 0 !important;
}
.m_-9060642977051719662shop-name__cell {
display: none !important;
text-align: center !important;
}
</style>
</head>
<body>
<table class="body">
<tr>
<td>
<table class="header row">
<tr>
<td class="header__cell">
<center>
<table class="container">
<tr>
<td>
<table class="row">
<center>
<tr class="teste" style="text-align: center !important;">
<td class="shop-name__cell" style="text-align: center !important;">
<div style="margin: 0 auto; text-align: center;">
{%- if shop.email_logo_url %}
<p>Rastreie seu pedido :)</p>
{%- else %}
<p>Rastreie seu pedido :)</p>
{%- endif %}
</div>
</td>
</tr>
</center>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<table class="row content">
<tr>
<td class="content__cell">
<center>
<table class="container">
<tr>
<td>
<p>{{ email_title }}</p>
<p class="email_body">{{ email_body }}</p>
{% if order_status_url %}
<table class="row actions">
<tr>
<td class="empty-line"> </td>
</tr>
<tr>
<td class="actions__cell">
<table class="button main-action-cell" style="display: flex !important; flex-direction: column !important;">
<tr class="main-action-cell-tr">
<div>
<td class="button__cell-text" >● Objeto postado!<br> ● Você será notificada(o) automaticamente via e-mail para cada movimentação!<br>● As informações estarão disponíveis dentro de 4 dias. </td>
</div>
<br>
</tr>
<tr class="main-action-cell-tr" style="display: flex; flex-direction: column;">
<div>
<td class="button__cell">
<a style="margin: 0 auto !important; padding: 20px 0 !important;" href="https://latviamodas.com/pages/rastreio?email=codigoderastreio&order={{ fulfillment.tracking_numbers.first }}" target="_blank" class="button__text">
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M386.689,304.403c-35.587,0-64.538,28.951-64.538,64.538s28.951,64.538,64.538,64.538
c35.593,0,64.538-28.951,64.538-64.538S422.276,304.403,386.689,304.403z M386.689,401.21c-17.796,0-32.269-14.473-32.269-32.269
c0-17.796,14.473-32.269,32.269-32.269c17.796,0,32.269,14.473,32.269,32.269C418.958,386.738,404.485,401.21,386.689,401.21z"/>
</g>
</g>
<g>
<g>
<path d="M166.185,304.403c-35.587,0-64.538,28.951-64.538,64.538s28.951,64.538,64.538,64.538s64.538-28.951,64.538-64.538
S201.772,304.403,166.185,304.403z M166.185,401.21c-17.796,0-32.269-14.473-32.269-32.269c0-17.796,14.473-32.269,32.269-32.269
c17.791,0,32.269,14.473,32.269,32.269C198.454,386.738,183.981,401.21,166.185,401.21z"/>
</g>
</g>
<g>
<g>
<path d="M430.15,119.675c-2.743-5.448-8.32-8.885-14.419-8.885h-84.975v32.269h75.025l43.934,87.384l28.838-14.5L430.15,119.675z"
/>
</g>
</g>
<g>
<g>
<rect x="216.202" y="353.345" width="122.084" height="32.269"/>
</g>
</g>
<g>
<g>
<path d="M117.781,353.345H61.849c-8.912,0-16.134,7.223-16.134,16.134c0,8.912,7.223,16.134,16.134,16.134h55.933
c8.912,0,16.134-7.223,16.134-16.134C133.916,360.567,126.693,353.345,117.781,353.345z"/>
</g>
</g>
<g>
<g>
<path d="M508.612,254.709l-31.736-40.874c-3.049-3.937-7.755-6.239-12.741-6.239H346.891V94.655
c0-8.912-7.223-16.134-16.134-16.134H61.849c-8.912,0-16.134,7.223-16.134,16.134s7.223,16.134,16.134,16.134h252.773v112.941
c0,8.912,7.223,16.134,16.134,16.134h125.478l23.497,30.268v83.211h-44.639c-8.912,0-16.134,7.223-16.134,16.134
c0,8.912,7.223,16.134,16.134,16.134h60.773c8.912,0,16.134-7.223,16.135-16.134V264.605
C512,261.023,510.806,257.538,508.612,254.709z"/>
</g>
</g>
<g>
<g>
<path d="M116.706,271.597H42.487c-8.912,0-16.134,7.223-16.134,16.134c0,8.912,7.223,16.134,16.134,16.134h74.218
c8.912,0,16.134-7.223,16.134-16.134C132.84,278.82,125.617,271.597,116.706,271.597z"/>
</g]>
</g>
<g>
<g>
<path d="M153.815,208.134H16.134C7.223,208.134,0,215.357,0,224.269s7.223,16.134,16.134,16.134h137.681
c8.912,0,16.134-7.223,16.134-16.134S162.727,208.134,153.815,208.134z"/>
</g>
</g>
<g>
<g>
<path d="M180.168,144.672H42.487c-8.912,0-16.134,7.223-16.134,16.134c0,8.912,7.223,16.134,16.134,16.134h137.681
c8.912,0,16.134-7.223,16.134-16.134C196.303,151.895,189.08,144.672,180.168,144.672z"/>
</g>
</g>
</svg>
➜Rastrear seu pedido
</a></td>
</div>
</tr>
</table>
{% if shop.url %}
<table class="link secondary-action-cell" style="margin: 0 auto !important">
<tr style="margin: 0 auto !important">
<td class="link__cell" style="text-align: center; margin: 0 auto !important">ou <br> Código de rastreio: {{ fulfillment.tracking_numbers.first }}</td>
</tr>
</table>
{% endif %}
</td>
</tr>
</table>
{% else %}
{% if shop.url %}
<table class="row actions">
<tr>
<td class="actions__cell">
<table class="button main-action-cell">
<tr>
<td class="button__cell"><a href="{{ shop.url }}" class="button__text">Acesse nossa loja</a></td>
</tr>
</table>
</td>
</tr>
</table>
{% endif %}
{% endif %}
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<table class="row section">
<tr>
<td class="section__cell">
<center>
<table class="container">
<tr style="width: 100% !important; display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 5px 0">
<td>
<h5><b>Itens do pedido</b></h5>
</td>
<td>
<h5><b>Qtde.</b></h5>
</td>
</tr>
</table>
<table class="container">
<tr>
<td>
<table class="row">
{% for line in subtotal_line_items %}
<tr class="order-list__item" style="width: 100%; border-top-width: 1px; border-top-color: #e5e5e5; border-top-style: solid;">
<td class="order-list__item__cell" style="width: 100%; padding-top: 15px;">
<table style="width: 100%; height: 100%">
<td><img src="{{ line.variant.image }}" alt=""></td>
<td class="order-list__product-description-cell" style="width: 100%;">
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
<span class="order-list__item-title">{{ line_title }}</span><br/>
{% if line.variant.title != 'Default Title' %}
<span class="order-list__item-variant">{{ line.variant.title }}</span><br/>
{% endif %}
{% if line.refunded_quantity > 0 %}
<span class="order-list__item-refunded">Refunded</span>
{% endif %}
</td>
<td class="order-list__price-cell">
<p class="order-list__item-price">
{{ line_display }}
</p>
</td>
</table>
</td>
</tr>{% endfor %}
</table>
<table class="row subtotal-lines">
<tr>
<td>
<table class="row subtotal-table">
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' %}
{% capture discount_title %}
{% if discount_application.title %}
{{ discount_application.title | upcase }}
{% else %}
Desconto
{% endif %}
{% endcapture %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Desconto</span>
<span class="subtotal-line__discount">
<img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
<span class="subtotal-line__discount-title">{{ discount_title }}</span>
</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>-{{ discount_application.total_allocated_amount | money }}</strong>
</td>
</tr>
{% endif %}
{% endfor %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Subtotal</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ subtotal_price | money }}</strong>
</td>
</tr>
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Frete</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ shipping_price | money }}</strong>
</td>
</tr>
{% for line in tax_lines %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>{{ line.title }}</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ line.price | money }}</strong>
</td>
</tr>
{% endfor %}
{% if total_duties %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Taxas de importação</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ current_total_duties | money }}</strong>
</td>
</tr>
{% endif %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Impostos</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ tax_price | money }}</strong>
</td>
</tr>
{% if total_tip and total_tip > 0 %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Tip</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ total_tip | money }}</strong>
</td>
</tr>
{% endif %}
</table>
<table class="row subtotal-table subtotal-table--total">
<tr class="subtotal-line">
<td class="subtotal-line__title" >
<p>
<span>Total</span>
</p>
</td>
<td class="subtotal-line__value" style="padding-bottom: 10px">
<strong>{{ total_price | money_with_currency }}</strong>
</td>
</tr>
</table>
<table class="row section">
<tr>
<td class="section__cell" style="margin: 0 0 !important">
<table>
<tr>
<td>
<br>
<h3>Informações do cliente</h3>
</td>
</tr>
</table>
<table style="margin: 0 0 !important">
<tr>
<td>
<table class="row">
<tr>
{% if requires_shipping and shipping_address %}
<td class="customer-info__item">
<h4>Endereço de entrega</h4>
{{ shipping_address | format_address }}
</td>
{% endif %}
</tr>
</table>
<table class="row">
<tr>
{% if requires_shipping and shipping_address %}
<td class="customer-info__item">
<h4>Forma de frete</h4>
<p>{{ shipping_method.title }}</p>
</td>
{% endif %}
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="row section" style="padding-bottom: 15px; border: 0 !important">
<tr>
<td class="section__cell">
<table style="margin: 0 0 !important">
<tr>
<td>
<table class="row">
<tr>
{% if requires_shipping and shipping_address %}
<td class="customer-info__item" style="padding: 5px 0 !important">
<h5 style="color: red; font-weight: 700; font-size: 14px;">Atenção!</h5>
<ul style="padding: 0 20px;">
<li style="font-size: .875em">Confira nossa<b> POLÍTICA DE PRAZO</b>, basta acessar a página <a style="" href="https://latviamodas.com/pages/envios-e-prazo" target="_blank">Envios e prazos</a><br><br>
<li style="font-size: .875em">Confira nossas<b> PERGUNTAS FREQUENTES</b>, basta acessar a página <a style="" href="https://latviamodas.com/pages/perguntas-frequentes" target="_blank">Perguntas Frequentes</a>
</ul>
</td>
{% endif %}
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% for transaction in transactions %}
{% unless transaction.kind == "capture" or transaction.kind == "void" %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% endunless %}
{% endfor %}
{% if transaction_size > 1 or transaction_amount < total_price %}
<table class="row subtotal-table">
<tr><td colspan="2" class="subtotal-table__line"></td></tr>
<tr><td colspan="2" class="subtotal-table__small-space"></td></tr>
{% for transaction in transactions %}
{% if transaction.status == "success" and transaction.kind == "authorization" or transaction.kind == "sale" %}
{% if transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>{{transaction_name}}</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ transaction.amount | money }}</strong>
</td>
</tr>
{% endif %}
{% if transaction.kind == 'refund' %}
{% if transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway %}
{% endif %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Reembolsar</span>
<br>
<small>{{ refund_method_title | capitalize }}</small>
</p>
</td>
<td class="subtotal-line__value">
<strong>- {{ transaction.amount | money }}</strong>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% endif %}
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<table class="row footer">
<tr>
<td class="footer__cell">
<center>
<table class="container">
<tr>
<td>
<h1 style="margin-bottom: 7px">Fale conosco</h1>
<div class="disclaimer__subtext">Nosso whatsapp: <a href="http://wa.me/5512997862686" target="_blank">Clique aqui</a></div>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
</td>
</tr>
</table>
</body>
</html>