Show all Affiliate statistics regardless of payout - Affiliate view

If you use the affiliate module, you likely already know that when an affiliate logs into their account, the only statistics available to them are the ones that your plan agrees to pay them for.

For example, if you don’t offer commission for banner shows, banner clicks, or new referral customers, the affiliate will not see these statistics, or the valuable calculations that are included in those. This makes it very difficult for your affiliates to know whether their banner placement, especially product banner placement, is working well.

If you would like to modify the cart so that all affiliate statistics visible from the admin side of the affiliate commissions module (with zero items set to show) show up when an affiliate views their commissions > general statistics - it is a quick fix.

In addons/affiliate/controllers/customer/aff_statistics.php, make the following change around line 100:

<br />
	}<br />
	if (!empty($statistic_search_data['zero_actions']) && $statistic_search_data['zero_actions'] == 'Y' && AREA != 'C') {<br />
		$statistic_conditions .= " AND (amount = 0) ";<br />
	} elseif (empty($statistic_search_data['zero_actions']) || AREA == 'C') {<br />
		$statistic_conditions .= [COLOR="Red"]" ";// AND (amount != 0) ";[/COLOR]<br />
	}<br />

```<br />
<br />
Now when your affiliate logs in, they will be able to see all of the statistics for their referral traffic, including those that do not pay out.

I tried this on 2.2.4 but I received this error. Any suggestions on how to fix it?

Parse error: syntax error, unexpected '[' in on line 108

Isn't this a basic need?

Why isn't this “fix” in 3.x?

Just an update (Version 3.05 in use):

“[color=#282828][font=arial, verdana, tahoma, sans-serif]In addons/[/font][/color][color=red][font=arial, verdana, tahoma, sans-serif]affiliate[/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]/controllers/customer/aff_[/font][/color][color=red][font=arial, verdana, tahoma, sans-serif]statistics[/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif].php, make the following change around line 100:”[/font][/color]

} elseif (empty($statistic_search_data['zero_actions']) || AREA == 'C') {
//$statistic_conditions .= " AND (amount != 0) "; // This is original line commented out but left in for reversion!
$statistic_conditions .= " AND (amount >= 0) "; // This is edited code to show ALL statistics - you can delete the AND (amount >=0) entirely between the "" quotes

An additional issue is that even with the original code in place - the search function on the Aff Stats page returns a 404 error anyway…