Here is one code fix.
While running the email for payouts, I noticed that no matter the referrers would receive an email stating they got $0.00.
Here is a fix to that.
Open admin/referrers.php.
Look for
PHP Code:
$referrers[$selected]['orders_unpaid'] = 0;
Before that add
PHP Code:
$commission_total = $referrers[$selected]['orders_unpaid'];
Now shortly after that in the same file, maybe a line or two down, look for
PHP Code:
"EMAIL_COMMISSION_TOTAL" => number_format(floatval($referrers[$selected]['orders_unpaid']),2),
Replace this with:
PHP Code:
"EMAIL_COMMISSION_TOTAL" => number_format(floatval($commission_total),2),
Now save. You should now have the correct tally.
This coding fixes a coding bug where the commission tally was reset to 0 before it was actually used. Now the script will note the total in a separate variable and will call that variable to put into the email.
Any questions, feel free to post.
Bookmarks