Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      The Affiliate system needs a few email templates to be created.

      1. Email templates
        1. 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}.

        2. 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.

        3. 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.

      Be sure this works for install, upgrade, and uninstall!

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Mar/20

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour
              1h

                Agile