{"action":"closed","issue":{"url":"https://api.github.com/repos/hallme/woo-address-book/issues/19","repository_url":"https://api.github.com/repos/hallme/woo-address-book","labels_url":"https://api.github.com/repos/hallme/woo-address-book/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/hallme/woo-address-book/issues/19/comments","events_url":"https://api.github.com/repos/hallme/woo-address-book/issues/19/events","html_url":"https://github.com/hallme/woo-address-book/issues/19","id":294099660,"number":19,"title":"Allow functionality for using company name or first- and last- name.","user":{"login":"opicron","id":472432,"avatar_url":"https://avatars0.githubusercontent.com/u/472432?v=4","gravatar_id":"","url":"https://api.github.com/users/opicron","html_url":"https://github.com/opicron","followers_url":"https://api.github.com/users/opicron/followers","following_url":"https://api.github.com/users/opicron/following{/other_user}","gists_url":"https://api.github.com/users/opicron/gists{/gist_id}","starred_url":"https://api.github.com/users/opicron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opicron/subscriptions","organizations_url":"https://api.github.com/users/opicron/orgs","repos_url":"https://api.github.com/users/opicron/repos","events_url":"https://api.github.com/users/opicron/events{/privacy}","received_events_url":"https://api.github.com/users/opicron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-03T10:03:59Z","updated_at":"2018-03-02T02:03:13Z","closed_at":"2018-03-02T02:03:13Z","author_association":"NONE","body":"When using an customized Woocommerce b2b where for shipping the company name is mandatory and first and last name are optional the address book selector on the checkout page is incorrect.\r\n\r\nI have adjusted the code to allow using company names instead of first- and -last name when applicable.\r\n\r\nFor this I have added/changed the following code:\r\n\r\n[function address_select_label] in [woocommerce-address-book.php] line 559.\r\n\r\n$company = ( $address[$name . '_company'] ? true : false );\r\nif ($company)\r\n\t$label = $address[$name . '_company'];\r\nelse\t\t\t\t\r\n\t$label = $address[$name . '_first_name'] . ' ' . $address[$name . '_last_name'];\r\n\r\nCould you please incorporate this in the plugin? Accompanied with an override setting which can enable this additional code to force maintaining backwards compatibilty.\r\n\r\nRegards,\r\nRobbert"}}
{"actor":{"display_login":"gthayer"}}