How are commissions displayed? I have affiliates setup and running with 5 affiliates year-to-date; however, I do not see where to find the actual order associated with the commission and referring user.

Any suggestions?

Comments

mesch’s picture

You can create a view that shows "Affiliate Commissions". I have this working for commissions of type "order". Also, for order commissions specifically, the module adds a tab to the administration order menu called "Commissions" where you can see any commissions attached to the order and add commissions manually.

deggertsen’s picture

Could you provide an export of your view to show Affiliate Commissions? I think that could be useful to others as documentation even if it doesn't exactly match what others have setup on their sites.

Thanks

kruser’s picture

StatusFileSize
new4.44 KB

Here is a rough view I exported which adds a link under the user's affiliate center called Commissions.

deggertsen’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new17.87 KB

Here's a patch that updates the commerce_affiliate.views_default.inc to include an admin page view. I may also update it to have a page where affiliates can see their own commissions.

Please review. I noticed in the patch that it removes a lot from the old default view, but I think it's unnecessary stuff that may have been included with an older version of views. That's just a guess though.

deggertsen’s picture

Oh, I thought I might also mention that I just wrote up this doc page to show how you can make it so you can mark commissions as paid in this view:
https://www.drupal.org/node/2507145

deaconblues’s picture

Status: Needs review » Closed (fixed)

Looks great to me! I patched the code and checked it in. Thanks for the help!

Also, great writeup on showing how to mark an affiliate commission as being paid. That's great functionality!

deggertsen’s picture

Thanks @deaconblues! Haven't seen it show up yet in the recent commits though... Is that what you meant by checking it in?

deaconblues’s picture

Committed but didn't push. My bad. It's there now.