Originally Posted by
lankeeyankee
I thought I'd throw this out there before digging into the code to see if anyone has already addressed this. The commission is based on the entire order total including shipping. We don't want to include shipping in the commission. Has anyone made the code changes to do this? I want to exclude just the shipping, so if any discount codes or gift certificates are used or any other order total module they are taken into account when the commission is calculated. Or is it more fair to the affiliate if it's based on the subtotal before any discounts are applied? If no one has done this, I will figure it out and post my changes. It looks like just a modification to admin/referrers.php.
I am also going to look at adding some logic to be able to create conditions for different commission rates. So if an order is below a certain threshold, say $50, the commission is one thing, and over $50 it's another. Has anyone done that yet? If not, I will dig in this weekend and see about doing it and will post the code when it's ready.
Thanks to all who have contributed refinements to the original code!
Bookmarks