{"action":"opened","issue":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/992","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/992/labels{/name}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/992/comments","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/992/events","html_url":"https://github.com/AffiliateWP/AffiliateWP/issues/992","id":119392128,"number":992,"title":"Filter to switch commission order?","user":{"login":"sumobi","id":52581,"avatar_url":"https://avatars.githubusercontent.com/u/52581?v=3","gravatar_id":"","url":"https://api.github.com/users/sumobi","html_url":"https://github.com/sumobi","followers_url":"https://api.github.com/users/sumobi/followers","following_url":"https://api.github.com/users/sumobi/following{/other_user}","gists_url":"https://api.github.com/users/sumobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sumobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumobi/subscriptions","organizations_url":"https://api.github.com/users/sumobi/orgs","repos_url":"https://api.github.com/users/sumobi/repos","events_url":"https://api.github.com/users/sumobi/events{/privacy}","received_events_url":"https://api.github.com/users/sumobi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-29T22:24:27Z","updated_at":"2015-11-29T22:24:27Z","closed_at":null,"body":"A customer upgraded to the latest version of AffiliateWP and realized that `per-affiliate rate > per-product rate`. They must have upgraded from a much earlier version of AffiliateWP.\r\n\r\nJust putting this out there... what if we could include a filter to switch the behaviour? It looks like we could include this filter around about here where the rate is determined, based on whether a per-affiliate rate is set: https://github.com/AffiliateWP/AffiliateWP/blob/master/includes/affiliate-functions.php#L205\r\n\r\nThis is either a great idea or a poor one depending on which way you look at it. It would allow greater flexibility, allowing those who wish the product rate to take precedence to do so, I know there's been more than one.\r\n\r\nBut it could also lead to more support tickets since we wouldn't know if they have the filter turned on (though an add-on could add a simple checkbox). There's also other add-ons which interact with the commission rate and they could lead to further complications."}}