Jump to content

Manual Commission Entries displayed to Affilaite


fyreflyX

Recommended Posts

Wondering f there is a way to display Manual Commission Entries added to an Affiliate account on the affiliates.php template?

 

The page currently only lists referrals, but I would like to also display the date, description and amount added when using "Add Manual Commission Entry".

 

Thanks

Link to comment
Share on other sites

i'm not sure if you're talking about the client or admin areas - there is an affiliates.php in each! :)

 

if you mean the client area, they you could use an action hook to query the database to get the information and pass the array back to the template.

 

if in the admin area, it would probably be easier to edit the affiliates report - but the solution to both will be the same SQL query... off the top of my head, I don't know what it would be, but I think it would be the tblaffiliatehistory table that would need to be checked.

Link to comment
Share on other sites

I was looking for the Client area - so the Affiliate could see the manual commissions I entered.

ok, it's the client area - that gives you options.

 

the easier way would be to add a second html table in the template - the information you're wanting (date, description and amount) should just require a simple query to the tblaffiliatehistory table... if it's a hook, pass the array back to the page and output the array in a foreach loop.

 

the complicated way, which would remove the need for editing the template, would be to take the SQL query that already generates the $referrals array and join your second sql array to it - but looking at the $referrals array, that query must use multiple joins to get all the data from numerous different tables, so it would be a more complex query to create.

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