Jump to content

How to display pending commissions?


Recommended Posts

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?

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated