How to add sub-affiliates count at home screen

To add the count of sub-affiliates to the affiliate panel home screen please navigate to Configuration > Design > Affiliate panel theme > and edit the theme. In the 'Theme editor' find and edit: 'period_stats.stpl' file.

You can use the following variables to add sub-affiliates counts to the affiliate panel home screen:

Number (count) of sub-affiliates on visible tiers for (parent) affiliate:

  • {$todaySubaffiliatesCount|number_span} - count of sub-affiliates who have registered today
  • {$thisMonthSubaffiliatesCount|number_span} - count of sub-affiliates who have registered in the actual calendar month
  • {$last30DaysSubaffiliatesCount|number_span} - count of sub-affiliates who have registered in the last 30 days
  • {$subaffiliatesCount|number_span} - total number of sub-affiliates

Number (count) of direct sub-affiliates:

  • {$todayDirectSubaffiliatesCount|number_span} - count of direct sub-affiliates who have registered today
  • {$thisMonthDirectSubaffiliatesCount|number_span} - count of direct sub-affiliates who have registered in the actual calendar month
  • {$last30DaysDirectSubaffiliatesCount|number_span} - count of direct sub-affiliates who have registered in the last 30 days
  • {$directSubaffiliatesCount|number_span} - total number of direct sub-affiliates

 

For example, you can add the following HTML code at the end of the "period_stats.stpl" file to display sub-affiliates counts:

<table width="600" class="StatsSummaries">
  <tr class="gray" >
    <td class="white" width="20%"></td>
    <td align="center" >##Today##</td>
    <td align="center" >##This month##</td>
    <td align="center" >##All##</td>
  </tr>
  <tr class="light" >
    <td class="white" width="20%">Subaffiliates</td>
    <td align="center" >{$todaySubaffiliatesCount|number_span}</td>
    <td align="center" >{$thisMonthSubaffiliatesCount|number_span}</td>
    <td align="center" >{$subaffiliatesCount|number_span}</td>
  </tr>
</table>

Affiliate panel home screen will look like this:

 

By default the above variables return the number of all sub-affiliates (approved, pending and declined) the parent affiliate has under him.

If you would like to display only the number of approved sub-affiliates, then you need to go to Configuration > Affiliate Panel > Menu & screens > edit either "Signup Subaffiliates" or "Tree of subaffiliates" > Subaffiliates filter tab > mark only 'Approved' affiliates and save the configuration.

 

×