46 lines
2.5 KiB
XML
46 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<data noupdate="1">
|
|
<record id="mail_template_sale_cart_recovery" model="mail.template">
|
|
<field name="name">eCommerce: Cart Recovery Email</field>
|
|
<field name="email_from">${(object.user_id.email or '')|safe}</field>
|
|
<field name="subject">You left items in your cart.</field>
|
|
<field name="partner_to">${object.partner_id.id}</field>
|
|
<field name="model_id" ref="sale.model_sale_order"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="body_html" type="xml">
|
|
<div style="margin:auto;width:100%;">
|
|
<img src="/web/image/res.company/${user.company_id.id}/logo" style="height: auto; width: 80px; margin-top:30px;" alt="${user.company_id.name}"/>
|
|
<h1 style="color:#A9A9A9;">THERE'S SOMETHING IN YOUR CART.</h1>
|
|
<p>Would you like to complete your purchase?</p><br/><br/>
|
|
% if object.order_line:
|
|
% for line in object.order_line:
|
|
<hr/>
|
|
<table width="100%">
|
|
<tr>
|
|
<td style="padding: 10px; width:150px;">
|
|
<img src="/web/image/product.product/${line.product_id.id}/image" height="100px" width="100px"></img>
|
|
</td>
|
|
<td>
|
|
<strong>${line.product_id.display_name}</strong><br/>${line.name}
|
|
</td>
|
|
<td width="100px" align="right">
|
|
${(line.product_uom_qty) | int} ${(line.product_uom.name)}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
% endfor
|
|
<hr/>
|
|
% endif
|
|
<br/><br/>
|
|
<center>
|
|
<a href="/shop/cart?access_token=${object.access_token}" target="_blank" style="background-color: #1abc9c; padding: 20px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;" class="o_default_snippet_text">Resume order</a><br/><br/><br/>
|
|
<p><b>Thank you for shopping with ${user.company_id.name}!</b></p>
|
|
</center>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</flectra>
|