{% if event.QuickActions.Products|length > 0 %}
<table
role="presentation"
cellspacing="0"
cellpadding="0"
border="0"
width="100%"
style="font-family: sans-serif;"
>
<tr>
<td style="padding: 20px 0; text-align: center;">
<h2 style="margin-bottom: 20px;">Special Add-ons for Your Next Delivery</h2>
{% for product in event.QuickActions.Products %}
{% if product.AvailableForSale %}
<table
role="presentation"
cellspacing="0"
cellpadding="0"
border="0"
width="100%"
style="margin-bottom: 30px; border-collapse: collapse;"
>
<tr>
<td style="width: 100px; padding: 10px;">
<img
src="{{ product.ImageUrl|default:'' }}"
alt="{{ product.Title|default:'Product' }}"
width="100"
style="border-radius: 6px; display: block;"
>
</td>
<td style="padding: 10px; text-align: left; vertical-align: top;">
<p style="margin: 0; font-weight: bold;">{{ product.Title }}</p>
{% if product.CurrentPrice < product.BasePrice %}
<p style="margin: 4px 0;">
<span style="color: #999; text-decoration: line-through;">{{ product.BasePrice }}</span>
<span style="font-weight: bold;">{{ product.CurrentPrice }}</span>
</p>
{% else %}
<p style="margin: 4px 0; font-weight: bold;">
{{ product.CurrentPrice }}
</p>
{% endif %}
<a
href="{{ product.AddProductUrl }}"
style="display: inline-block; margin-top: 10px; padding: 10px 16px; background-color: #3727F4; color: white; text-decoration: none; border-radius: 4px;"
>
Add to next delivery
</a>
</td>
</tr>
</table>
{% endif %}
{% endfor %}
</td>
</tr>
</table>
{% else %}
<p style="text-align: center;">No add-ons available at the moment.</p>
{% endif %}