Template for the monthly automatic loyalty program email message.

Description

In the message you should use the {CustomerDiscountCodes} tag, which prints the list of discount codes granted to the customer.

Template properties

Template location
themes/email/THEME/customer/campaign-codes.html
Template URL
Email notifications do not have a URL address
Scope
globaali

Default theme implementation

---
subject: '{OrderEmailTitle}'
---

{{> header }}

<wrapper class="Primary">
	<spacer size="10"></spacer>
	<container class="Block">
		<h1>{%LoyaltyProgramHtmlEmailHeader}</h1>
		<p>
			{%LoyaltyProgramHtmlEmailMessage}
		</p>
	</container>
	<spacer size="20"></spacer>
</wrapper>

<wrapper class="Secondary">
	<container class="Block">
		{CustomerDiscountCodes(
			helper: 'emails/helpers/customer-discount-codes'
		)}
	</container>
	<spacer size="30"></spacer>
</wrapper>

<wrapper class="Primary">
	<spacer size="20"></spacer>
	<container class="Block">
		<div>
			<a href="{ShopUrl}" class="Text-Center DiscountShopButton">
				{%LoyaltyProgramHtmlGoToShop}
			</a>
		</div>
	</container>
	<spacer size="30"></spacer>
</wrapper>

{{> contact }}
{{> unsubscribe }}
{{> footer }}