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

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Description The Affiliate system needs a few email templates to be created.

        # Email templates
        ## Affiliate Payout Request (to staff)
        ##* Subj: "Affiliate Payout Request"
        ##* {quote} 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_\}.
        {quote}
        ## Affiliate Payout Received (to client)
        ##* Subj: "Affiliate Payout Request Received"
        ##* {quote} 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.
        {quote}
        ## Affiliate Report (Monthly) (to client)
        ##* Subj: "Monthly Affiliate Report"
        ##* {quote} 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 %\}
        {quote}
        ##* 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?

        _Be sure this works for install, upgrade, and uninstall!_
        The Affiliate system needs a few email templates to be created.

        # Email templates
        ## Affiliate Payout Request (to staff)
        ##* Subj: "Affiliate Payout Request"
        ##* {quote} 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_\}.
        {quote}
        ## Affiliate Payout Received (to client)
        ##* Subj: "Affiliate Payout Request Received"
        ##* {quote} 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.
        {quote}
        ## Affiliate Report (Monthly) (to client)
        ##* Subj: "Monthly Affiliate Report"
        ##* {quote} 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 %\}
        {quote}
        ##* 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?

        _Be sure this works for install, upgrade, and uninstall!_
        admin Paul Phillips made changes -
        Description The Affiliate system needs a few email templates to be created.

        # Email templates
        ## Affiliate Payout Request (to staff)
        ##* Subj: "Affiliate Payout Request"
        ##* {quote} 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_\}.
        {quote}
        ## Affiliate Payout Received (to client)
        ##* Subj: "Affiliate Payout Request Received"
        ##* {quote} 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.
        {quote}
        ## Affiliate Report (Monthly) (to client)
        ##* Subj: "Monthly Affiliate Report"
        ##* {quote} 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 %\}
        {quote}
        ##* 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?

        _Be sure this works for install, upgrade, and uninstall!_
        The Affiliate system needs a few email templates to be created.

        # Email templates
        ## Affiliate Payout Request (to staff)
        ##* Subj: "Affiliate Payout Request"
        ##* {quote} 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_\}.
        {quote}
        ## Affiliate Payout Received (to client)
        ##* Subj: "Affiliate Payout Request Received"
        ##* {quote} 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.
        {quote}
        ## Affiliate Report (Monthly) (to client)
        ##* Subj: "Monthly Affiliate Report"
        ##* {quote} 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 %\}
        {quote}
        ##* 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!_
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 1 hour [ 3600 ]
        Worklog Id 13221 [ 13221 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #116 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Jonathan Reissmueller merged pull request #116 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          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