Items included in a specific order are displayed using the items variable, tagged with a @repeat property. An example can be found below.
<!-- @repeat items -->
<tr>
<td>
<table style="max-width: 600px; border-collapse: collapse; margin: 0 auto 10px; border-bottom: 1px dotted #cccccc;" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td width="160"><a href="[*product_url*]"> <img src="[*product_image*]" width="140" data-imagetype="External" /> </a></td>
<td width="440">
<table style="border-collapse:collapse;" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="padding-top:10px;" colspan="5" valign="top">
<a href="[*product_url*]">
<span style="[*body_font*]font-size:14px;[*secondary_color*]padding:10px 0;line-height:22px;">
[*product_name*]
</span>
</a>
<br />
<span style="[*body_font*]display:block;font-size:12px;[*secondary_color*]padding:10px 0 0;line-height:18px;">
[*product_sku*]
<br />
[*item_options*]
</span>
</td>
</tr>
<tr>
<td><span style="[*body_font*]display:block;font-size:12px;[*secondary_color*]padding:10px 0 0;line-height:18px;">Price</span></td>
<td><span style="[*body_font*]display:block;font-size:12px;[*secondary_color*]padding:10px 0 0;line-height:18px;">Qty</span></td>
<td><span style="[*body_font*]display:block;font-size:12px;[*secondary_color*]padding:10px 0 0;line-height:18px;text-align:right;">Total</span></td>
</tr>
<tr>
<td>
<span style="[*body_font*]font-size:12px;[*secondary_color*]padding:10px 0;line-height:22px;">$[*item_price*]</span>
</td>
<td>
<span style="[*body_font*]font-size:12px;[*secondary_color*]padding:10px 0;line-height:22px;">[*item_quantity*]</span>
</td>
<td>
<span style="[*body_font*]font-size:12px;[*secondary_color*]font-weight:bold;padding:10px 0;line-height:22px;text-align:right;display:block;">$[*item_subtotal*]</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- @end-repeat items -->
Comments
0 comments
Please sign in to leave a comment.