Hi,

I needed integration with commerce orders in order to be able to create an affiliation program based on a commission per order and not per click.

I created a module called Commerce Affiliate Orders, available here, in a sandbox project:
http://drupal.org/sandbox/guillaumev/1279128

I left it as a sandbox for now as I'm not sure whether what bojanz wanted to create with the Commerce Affiliate project (http://drupal.org/project/commerce_affiliate) is the same or not.

For people interested, please test the code in my sandbox project and let me know if you would like to see this module promoted as a full project...

Comments

bojanz’s picture

I think this should remain as a sandbox. It solves an immediate need, but can be done better.

My idea is to have a commission entity that's referenced form orders just like line items (same widget, looks and functionality).
You can have one or multiple commissions attached, allowing you to have per-order or per-line-item commissions.
The commission reference field can also be attached to another entity, like users, so you can give someone a commission when a user signs up, or whatever.
Attaching a commission or determining the commission rate is done through rules.

I have this about half done, balancing that and getting Affiliate-NG into shape.

deggertsen’s picture

Status: Active » Fixed

I believe this issue is fixed as http://drupal.org/project/commerce_affiliate actually has a dev release now.

likewhoa’s picture

Status: Fixed » Active

@deggertsen please don't closed bugs unless you're absolutely sure as commerce_affiliate has had a -dev since Dec 2011 and it's 2013 now ;)

deggertsen’s picture

What is this issue meant to address then? I guess I need some clarification here as I thought it was simply a request to have integration with commerce orders, which commerce_affiliate provides. This issue was initially created in Sept 2011, which like you pointed out is before commerce_affiliate had a -dev release.

likewhoa’s picture

@deggertsen not sure but i will see if it's relevant still before closing it as being neglected or obsolete.

perignon’s picture

Issue summary: View changes
Status: Active » Fixed

If I am not mistaken the development on Commerce Affiliate has answered this issue.

Status: Fixed » Closed (fixed)

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