Details
Description
The Affiliate system needs a few email templates to be created.
- Email templates
- Affiliate Payout Request (to staff)
- Subj: "Affiliate Payout Request"
Hello {staff.first_name},
A payout request has been made by {client.first_name} {client.last_name} (#{affiliate.id}) in the amount of {payout.requested_amount | currency_format payout.requested_currency}.
- Affiliate Payout Received (to client)
- Subj: "Affiliate Payout Request Received"
Hello {client.first_name},
Your affiliate payout request for {payout.requested_amount | currency_format payout.requested_currency} has been received by staff and is currently under review.
- Affiliate Report (Monthly) (to client)
- Subj: "Monthly Affiliate Report"
Hello {client.first_name},
This is your monthly affiliate report.Total visitors referred: affiliate.clicks
Current earnings: {affiliate.meta.total_amount | currency_format affiliate.meta.currency}
Amount withdrawn: {affiliate.meta.total_withdrawn | currency_format affiliate.meta.currency}New sign-ups this month
{% if signups %}
<table>
<tr>
<th>Sign-up Date</th>
<th>Service</th>
<th>Amount</th>
<th>Commission</th>
<th>Status</th>
</tr>
{% for referral in referrals %}
<tr>
<td>{referral.date_added | date date_format}</td>
<td>{referral.name}</td>
<td>{referral.amount | currency_format referral.currency}</td>
<td>{referral.commission | currency_format referral.currency}</td>
<td>{referral.status_formatted}</td>
</tr>
{% endfor %}
</table>
{% else %}
You have not received any sign-ups during this period.
{% endif %}- NOTE: Table tags shouldn't be used for the referral list. The WYSIWYG will not allow for tags to be placed between <tr> elements--it will change their location. Instead, perhaps a file attachment can be included of a CSV file that is generated for the list? A CSV is probably OK if they cannot be included in table format.
- Affiliate Payout Request (to staff)
Be sure this works for install, upgrade, and uninstall!