Last active
May 16, 2024 20:03
-
-
Save HubSpotHanevold/4389bf7555a0cb33074588e84ba4b17c to your computer and use it in GitHub Desktop.
Abandoned Cart Email Module Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- REMEMBER 'USE MODULE FOR PROGRAMMABLE EMAIL' MUST BE SELECTED --> | |
<!-- RETRIEVE PAYLOAD DATA FROM CONTACT RECORD --> | |
{% set cart_items = contact.abandoned_cart_json_payload | fromjson %} | |
<!-- HEADER ROW --> | |
<table style="width: 100%; border-collapse: collapse;"> | |
<tr> | |
<th style="width: 20%; text-align: left; font-weight: bold; border: none;"></th> | |
<th style="width: 60%; text-align: left; font-weight: bold; border: none;"></th> | |
<th style="width: 10%; text-align: right; font-weight: bold; border: none;">Qty</th> | |
<th style="width: 10%; text-align: right; font-weight: bold; border: none;">Price</th> | |
</tr> | |
<!-- LOOP THROUGH JSON --> | |
{% for item in cart_items %} | |
<tr style="vertical-align: top;"> | |
<td style="width: 20%; text-align: left; padding: 0; border: none;"><img src="{{item.image_url}}" style="width: 100px;" /></td> | |
<td style="width: 60%; text-align: left; padding: 0; border: none;"><span style="font-weight: bold; font-size: 16px;">{{item.brand}}</span><br>{{item.description}}<br><br><font style="color: gray;">{{item.color}}</font><br><font style="color: gray;">{{item.size}}</font><br><br><br><br></td> | |
<td style="width: 10%; text-align: right; padding: 0; border: none;">{{item.quantity}}</td> | |
<td style="width: 10%; text-align: right; padding: 0; border: none;">{{item.price}}</td> | |
</tr> | |
{% endfor %} | |
<!-- END LOOP THROUGH JSON --> | |
</table> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment