EscalateSEO Posted March 2, 2014 Share Posted March 2, 2014 I've been working all day to figure out how to display the pending commissions for affiliates in the clientareahome.tpl file. Since that file doesn't have the $pendingcommissions smarty variable, I've found it extremely difficult to do this. I managed to get the withdrawn amounts and available balance to show on the page but can't seem to do it with pending commissions. Has anyone figured out how to do this? 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted March 4, 2014 Share Posted March 4, 2014 This code should work: {php} $clientsdetailsarray = $this->get_template_vars('clientsdetails'); $userid = $clientsdetailsarray[userid]; $result = mysql_query("SELECT * FROM tblaffiliatespending WHERE id='$userid'") or die(mysql_error()); $data = mysql_fetch_array( $result ); $pending_commissions = $data['amount']; echo $pending_commissions; {/php} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.