Mailer
Layouts/theme.liquid
Dentro del directorio Layouts encontraremos un archivo llamado mailer.liquid, este archivo tiene como propósito ser el contenedor de los emails personalizados.
Los diferentes archivos con el prefijo “mailers” dentro de la carpeta Templates se inyectarán dentro del tag {{content_for_layout}}
Código base:
<table width="560" align="center" cellpadding="0" cellspacing="0" border="0" class="devicewidthinner">
<tbody>
<!-- Title -->
<tr>
<td style="font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #6B6B6B; text-align:left; line-height: 24px; font-weight: 300;" st-content="fulltext-content">
{{ request.full_name }}, {{'mailer.order.event.your_tickets_for' | t }}:
</td>
</tr>
<tr>
<td style="font-family: Helvetica, arial, sans-serif; font-size: 26px; color: #000; text-align:left; line-height: 26px; padding-top:12px; " st-title="fulltext-heading">
{{ event.full_title }}
</td>
</tr>
<tr>
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #6B6B6B; text-align:left; line-height: 18px; font-weight: 300;padding-top: 10px" st-content="fulltext-content">
</td>
</tr>
<!-- End of Title -->
<!-- Start Full Text -->
<!-- End of content -->
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="full-text">
<tbody>
<tr>
<td>
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<tr>
<td width="100%">
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<!-- Spacing -->
<tr>
<td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
</tr>
<!-- Spacing -->
<tr>
<td>
<table width="560" align="center" cellpadding="0" cellspacing="0" border="0" class="devicewidthinner">
<tbody>
<!-- Title -->
<tr>
<td style="font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #6B6B6B; text-align:left; line-height: 24px; font-weight: 300;" st-content="fulltext-content">
{% if request_type == 'Sale' and request.applied_event_dcto.email_content == true and event_dcto.email %}
{{ request.applied_event_dcto.email_content }}
{% elsif event.email_content %}
{{ event.email_content }}
{% endif %}
</td>
</tr>
<!-- Spacing -->
<tr>
<td width="100%" height="20"></td>
</tr>
<!-- End of Title -->
<!-- Start Full Text -->
<!-- End of content -->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="full-text">
<tbody>
<tr>
<td>
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<tr>
<td width="100%">
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<!-- Spacing -->
<tr>
<td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
</tr>
<!-- Spacing -->
<tr>
<td>
<table width="560" align="center" cellpadding="0" cellspacing="0" border="0" class="devicewidthinner">
<tbody>
<!-- Title -->
<tr>
<td style="font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #6B6B6B; text-align:left; line-height: 24px; font-weight: 300;" st-content="fulltext-content">
{{'mailer.order.event.body' | t }}
</td>
</tr>
<!-- Spacing -->
<tr>
<td width="100%" height="20"></td>
</tr>
<!-- End of Title -->
<!-- Start Full Text -->
<!-- End of content -->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="full-text">
<tbody>
<tr>
<td>
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<tr>
<td width="100%">
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
<tbody>
<tr>
<td>
<table width="560" align="center" cellpadding="0" cellspacing="0" border="0" class="devicewidthinner">
<tbody>
<!-- Title -->
<tr>
<td align="center" valign="middle" style="font-family: Helvetica, arial, sans-serif; font-size: 14px;color: #666666; padding-top:12px; white-space: nowrap; overflow: hidden;text-overflow: ellipsis; width: 200px; word-wrap: break-word;" st-content="postfooter">
{% assign btn_text = 'mailer.order.event.button' | t %}
{% if request_type 'Sale' %}
{{ request | link_to_order, btn_text, class: "btn" }}
{% endif %}
{% if request_type 'ManualSalesRequest' %}
{% endif %}
{% if request_type 'SaleDetail' %}
{% endif %}
</td>
</tr>
<!-- Spacing -->
<tr>
<td width="100%" height="20"></td>
</tr>
<!-- End of Title -->
<!-- Start Full Text -->
<!-- End of content -->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="seperator">
<tbody>
<tr>
<td>
<table width="600" align="center" cellspacing="0" cellpadding="0" border="0" class="devicewidth">
<tbody>
<tr>
<td align="center" height="30" style="font-size:1px; line-height:1px;"> </td>
</tr>
<tr>
<td width="550" align="center" height="1" bgcolor="#ddd" style="font-size:1px; line-height:1px;"> </td>
</tr>
<tr>
<td align="center" height="30" style="font-size:1px; line-height:1px;"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Last updated
Was this helpful?