Transactional email template with parameters
- 4 Minutes to read
- Print
- DarkLight
Transactional email template with parameters
- 4 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Example of a prepared order email template
<html>
<body>
<p>Dear
<%user.firstname%>
<%user.lastname%>
</p>
<p> Thank you for shopping , please see your order no. <%${product['orderId']}%> details below: </p>
<br>
<table class="order-details">
<tr>
<td class="address-details">
<h3>Billing Info</h3>
<p>
<%parameter.billingAddress%>
</p>
</td>
<td class="address-details">
<h3>Shipping Info</h3>
<p>
<%parameter.shippingAddress%>
</p>
</td>
</tr>
<tr>
<td class="method-info">
<h3>Payment Method</h3>
<p>
<%parameter.paymentInfo%>
</p>
</td>
<td class="method-info">
<h3>Shipping Method</h3>
<p>
<%parameter.shippingMethod%>
</p>
<%InsertIf expression="${not empty parameter['shippingMessage']}" id="1"%>
<h3>Shipping message:</h3>
<p>
<%parameter.shippingMessage%>
</p>
<%/InsertIf%>
</td>
</tr>
</table>
<%ForEach var="product" items="${transaction_details}"%>
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td align="top" >
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td align="center" class="someCSSSstyle">
<a href="<%${product['productURL']}%>" >
<img src="<%${product['imageURL']}%>" width="280" border="0" /></a>
</td>
</tr>
<tr>
<td >
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td align="center" >
<a href="url" target="_blank" >
<span >
<%${product['brand']}%>
</span>
</a>
</td>
</tr>
<tr>
<td align="center" >
<a href="url" target="_blank" >
<span >
<%${product['productName']}%>
</span>
</a>
</td>
</tr>
<tr>
<td align="center" >
<a href="url" target="_blank" >
<span >
Quantity: <%${product['productQuantity']}%>, Price per item: <%${product['productPrice']}%> <%${product['currency']}%>
</span>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%/ForEach%>
<table class="order-details">
<tr>
<td class="address-details">
<h3>Shiping Price:</h3>
<p>
<%parameter.shippingTotal%>
</p>
</td>
<td class="address-details">
<h3>Order items total:</h3>
<p>
<%parameter.orderItemsTotal%>
</p>
</td>
</tr>
</table>
<br>
<h2> TOTAL:
<%parameter.orderTotal%>
<%${product['currency']}%>
</h2>
<br>
<p>Greetings!</p>
</body>
</html>
Was this article helpful?