In conjunction with #1869620: Create permanent User->Affiliate relationship using rules I believe I'm going to need a rules action that will pull a specified affiliate/user to attribute to a commission. Currently the only option is for the affiliate to be defined by the cookie.

CommentFileSizeAuthor
#1 define_affiliate-2507167-1.patch1.5 KBdeggertsen

Comments

deggertsen’s picture

Status: Active » Needs review
StatusFileSize
new1.5 KB

Here's a patch. Please review.

I found another use case that I needed this for. I have users on the site creating events and I wanted it to give them a % commission for each ticket to the event that is sold. Using this patch I was able to define the affiliate as the event author.

deaconblues’s picture

Looks good to me. Committed the code and leaving this in Needs Review for a few days for everyone to test.

deggertsen’s picture

Thanks for committing. We'll watch this one in case anyone runs into problems. So far so good for me, but I am hoping to see a few commissions come through on my live site I have this running on before I call it good.

Thanks for making me a co-maintainer. I'll do my best to contribute =)

deaconblues’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.