- 1 Minute to read
- Print
- DarkLight
Integrate Local Store Promotions in Your Regular Campaigns
- 1 Minute to read
- Print
- DarkLight
All the steps we mention in the video are listed below.
Prerequisites
The custom attribute for the city must be set up: Create Custom Attribute.
Images for each city uploaded to the Content Store: Create New Content Store Element.
Related data set with details of stores: Create Related Data Set.
Step | Navigation path | Description |
---|---|---|
1 | Content > Content Store |
See this and more code examples: Display Conditional Related Data-based Content in an Email Message. |
2 | Messages > Prepared Messages > Email |
For more information, see Use a Content Store Element in an Email. |
<%InsertIf expression="${ecm:between(user.RelatedAttribute.stores['OpeningDate'], ecm:addInterval(date['Today'], '-2W'), ecm:addInterval(date['Today'], '+2W'))}" id="Adbanner"%>
<!-- Hero_Image start -->
<table cellspacing="0" cellpadding="0" align="center" border="0" width="660" bgcolor="#ffffff" style="width:660px;max-width:660px;background-color:#ffffff" class="w330px">
<tr>
<td align="center"><a href="#" target="_blank"><img src="<%${user.RelatedAttribute.stores['Image Url']}%>" width="660" height="356" class="w330px hauto" /></a>
</td>
</tr>
</table>
<!-- End Hero_Image -->
<%/InsertIf%>