{"action":"created","issue":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/465","repository_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/465/comments","events_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/465/events","html_url":"https://github.com/AffiliateWP/AffiliateWP/issues/465","id":50902359,"number":465,"title":"Per-category commission rates","user":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"labels":[{"id":230490395,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/Has%20PR","name":"Has PR","color":"bfe5bf","default":false},{"id":72778873,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/enhancement","name":"enhancement","color":"70adee","default":true},{"id":550972633,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/has%20HS%20to-notify","name":"has HS to-notify","color":"0e8a16","default":false},{"id":121079261,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/i:Easy%20Digital%20Downloads","name":"i:Easy Digital Downloads","color":"428bca","default":false},{"id":121079169,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/i:WooCommerce","name":"i:WooCommerce","color":"96588a","default":false},{"id":113520527,"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/labels/needs%20testing","name":"needs testing","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false},"assignees":[{"login":"amdrew","id":52581,"avatar_url":"https://avatars2.githubusercontent.com/u/52581?v=4","gravatar_id":"","url":"https://api.github.com/users/amdrew","html_url":"https://github.com/amdrew","followers_url":"https://api.github.com/users/amdrew/followers","following_url":"https://api.github.com/users/amdrew/following{/other_user}","gists_url":"https://api.github.com/users/amdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/amdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amdrew/subscriptions","organizations_url":"https://api.github.com/users/amdrew/orgs","repos_url":"https://api.github.com/users/amdrew/repos","events_url":"https://api.github.com/users/amdrew/events{/privacy}","received_events_url":"https://api.github.com/users/amdrew/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones/90","html_url":"https://github.com/AffiliateWP/AffiliateWP/milestone/90","labels_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/milestones/90/labels","id":2368051,"number":90,"title":"2.2","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars1.githubusercontent.com/u/1034109?v=4","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":4,"state":"open","created_at":"2017-03-07T04:39:36Z","updated_at":"2018-02-26T21:47:44Z","due_on":null,"closed_at":null},"comments":29,"created_at":"2014-12-03T22:29:59Z","updated_at":"2018-03-01T06:35:18Z","closed_at":null,"author_association":"OWNER","body":"I'm not sure if this is something we add to core but including it here anyway for discussion. \n\nA customer has expressed interest in changing commission rates for product categories (using WooCommerce). They could go to `Category A` for example and enter `40%`. All products within that category would take on 40% commission. This could be a real time saver for people that group products and want the commission rates all the same.\n\nIn the meantime I put together this code snippet (untested) which should provide some examples on how to do this for anyone wanting to:\n\nhttps://gist.github.com/sumobi/c149510eef862f822b1f\n"},"comment":{"url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/comments/369489240","html_url":"https://github.com/AffiliateWP/AffiliateWP/issues/465#issuecomment-369489240","issue_url":"https://api.github.com/repos/AffiliateWP/AffiliateWP/issues/465","id":369489240,"user":{"login":"michaelbeil","id":4752949,"avatar_url":"https://avatars2.githubusercontent.com/u/4752949?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelbeil","html_url":"https://github.com/michaelbeil","followers_url":"https://api.github.com/users/michaelbeil/followers","following_url":"https://api.github.com/users/michaelbeil/following{/other_user}","gists_url":"https://api.github.com/users/michaelbeil/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbeil/subscriptions","organizations_url":"https://api.github.com/users/michaelbeil/orgs","repos_url":"https://api.github.com/users/michaelbeil/repos","events_url":"https://api.github.com/users/michaelbeil/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbeil/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T06:35:18Z","updated_at":"2018-03-01T06:35:18Z","author_association":"MEMBER","body":"Yes, my settings are setup like yours. Category A = Test 1 and Category B = Test 2. \r\n\r\nThe only difference is that I have a global rate of 15%. I will give this another test today. "}}
{"actor":{"display_login":"michaelbeil"}}