Hello,
When you activate e-payment processors other than AlertPay and PayPal, the payment received from them are not listed in your Admin Overall Stat Page. its because the code is just limited to retrieve payment from AlertPay and PayPal only.
So, this code is to fix it, it can list other payment processors that are already received for the payment.
first, you need to find the code within admin2/stats.php file
$total_ap=$Db1->querySingle("SELECT SUM(cost) AS total FROM ledger WHERE proc='Alertpay'","total");
$total_pp=$Db1->querySingle("SELECT SUM(cost) AS total FROM ledger WHERE proc='Paypal'","total");
Replace with this code:
$procsql=$Db1->query("SELECT proc, SUM(cost) AS total FROM ledger WHERE status=1 GROUP BY proc ORDER BY proc");
$proclist="";
while ($totalprocs=$Db1->fetch_array($procsql)) {
$proclist.="
<tr>
<td class=\"tableHead\">Total $totalprocs[proc] Income</td>
<td colspan=2 align=\"right\">$ ". number_format($totalprocs[total], 2) ."</td>
</tr>
";
}
then find this code:
<tr>
<td class=\"tableHead\">Total Alertpay Income</td>
<td colspan=2 align=\"right\">$ $total_ap</td>
</tr>
<tr>
<td class=\"tableHead\">Total Paypal Income</td>
<td colspan=2 align=\"right\">$ $total_pp</td>
</tr>
Replace it with this code:
$proclist