{"action":"created","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12610","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12610/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12610/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12610/events","html_url":"https://github.com/woocommerce/woocommerce/issues/12610","id":195918354,"node_id":"MDU6SXNzdWUxOTU5MTgzNTQ=","number":12610,"title":"B2B transactions support","user":{"login":"msaggiorato","id":6192180,"node_id":"MDQ6VXNlcjYxOTIxODA=","avatar_url":"https://avatars1.githubusercontent.com/u/6192180?v=4","gravatar_id":"","url":"https://api.github.com/users/msaggiorato","html_url":"https://github.com/msaggiorato","followers_url":"https://api.github.com/users/msaggiorato/followers","following_url":"https://api.github.com/users/msaggiorato/following{/other_user}","gists_url":"https://api.github.com/users/msaggiorato/gists{/gist_id}","starred_url":"https://api.github.com/users/msaggiorato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msaggiorato/subscriptions","organizations_url":"https://api.github.com/users/msaggiorato/orgs","repos_url":"https://api.github.com/users/msaggiorato/repos","events_url":"https://api.github.com/users/msaggiorato/events{/privacy}","received_events_url":"https://api.github.com/users/msaggiorato/received_events","type":"User","site_admin":false},"labels":[{"id":33006752,"node_id":"MDU6TGFiZWwzMzAwNjc1Mg==","url":"https://api.github.com/repos/woocommerce/woocommerce/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"1d76db","default":false},{"id":152992,"node_id":"MDU6TGFiZWwxNTI5OTI=","url":"https://api.github.com/repos/woocommerce/woocommerce/labels/enhancement","name":"enhancement","color":"c5def5","default":true},{"id":406336945,"node_id":"MDU6TGFiZWw0MDYzMzY5NDU=","url":"https://api.github.com/repos/woocommerce/woocommerce/labels/feature%20plugin","name":"feature plugin","color":"AF52AD","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-12-15T21:18:32Z","updated_at":"2018-05-31T16:54:01Z","closed_at":"2017-02-23T12:59:25Z","author_association":"CONTRIBUTOR","body":"**Overview**\r\n\r\nAt SAU/CAL, the company I work for, we have met lately with large companies that want to use WooCommerce as an eCommerce platform, but since it lacks support for B2B transactions, they are discouraged to take the step.\r\n\r\nTaking advantage of the approach that’s cooking in the WC team about refactoring, we thought to do something similar to implement this feature in a very scalable way without affecting the core significantly.\r\n\r\nOur approach basically consists in a couple things:\r\n\r\n1. Separate customers from users (which will be stored in a separate table, for better indexability, posts are not very good for large stores).\r\n2. Customers can be of 2 types: individuals, and companies.\r\n    * Each of these will be linked to one or more users, and when several users are linked, each one will have a specific role for that customer/company (purchase manager for example).\r\n3. Addresses will be saved in a separate table, to allow complex address keeping for companies (several shipping addresses for example, but we'll still use only one per order).\r\n\r\n**Open to suggestions**\r\n\r\nAs said above, we intend to have this implemented as a plugin first, but hopefully do it in a nice way so that it can be considered for merging with WC Core at some point.\r\n\r\nFor this reason, even tho we haven't started working on this yet, we're open to any suggestions to improve this.\r\n\r\nWe've already been discussing this briefly with Mike Jolley, but he suggested that we bring it up here to have more people involved.\r\n\r\nWe appretiate any input. Thanks."},"comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments/393599743","html_url":"https://github.com/woocommerce/woocommerce/issues/12610#issuecomment-393599743","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12610","id":393599743,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzU5OTc0Mw==","user":{"login":"fdolin","id":4179819,"node_id":"MDQ6VXNlcjQxNzk4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4179819?v=4","gravatar_id":"","url":"https://api.github.com/users/fdolin","html_url":"https://github.com/fdolin","followers_url":"https://api.github.com/users/fdolin/followers","following_url":"https://api.github.com/users/fdolin/following{/other_user}","gists_url":"https://api.github.com/users/fdolin/gists{/gist_id}","starred_url":"https://api.github.com/users/fdolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdolin/subscriptions","organizations_url":"https://api.github.com/users/fdolin/orgs","repos_url":"https://api.github.com/users/fdolin/repos","events_url":"https://api.github.com/users/fdolin/events{/privacy}","received_events_url":"https://api.github.com/users/fdolin/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T16:54:01Z","updated_at":"2018-05-31T16:54:01Z","author_association":"NONE","body":"any idea how to best handle this issue before this feature plugin is launched...? thanks !"}}
{"actor":{"display_login":"fdolin"}}