{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/7776","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7776/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7776/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7776/events","html_url":"https://github.com/woothemes/woocommerce/issues/7776","id":63070731,"number":7776,"title":"Ability to configure product fields in manual orders","user":{"login":"franticpsyx","id":1783726,"avatar_url":"https://avatars.githubusercontent.com/u/1783726?v=3","gravatar_id":"","url":"https://api.github.com/users/franticpsyx","html_url":"https://github.com/franticpsyx","followers_url":"https://api.github.com/users/franticpsyx/followers","following_url":"https://api.github.com/users/franticpsyx/following{/other_user}","gists_url":"https://api.github.com/users/franticpsyx/gists{/gist_id}","starred_url":"https://api.github.com/users/franticpsyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franticpsyx/subscriptions","organizations_url":"https://api.github.com/users/franticpsyx/orgs","repos_url":"https://api.github.com/users/franticpsyx/repos","events_url":"https://api.github.com/users/franticpsyx/events{/privacy}","received_events_url":"https://api.github.com/users/franticpsyx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T19:19:52Z","updated_at":"2015-03-19T19:19:52Z","closed_at":null,"body":"Currently, the core doesn't provide an infrastructure for configuring products when adding a product manually into an order. All we can do is add a single line item - no form/fields can be added to trigger extension-specific actions such as adding custom order meta or adding extra line items / fees linked to the initially-added product.\r\n\r\nThis affects the core *and* many extensions -- variable products, composites, add-ons, bundles, grouped products, to name a few. \r\n\r\nAt the moment, most shop managers go around this issue/limitation by creating an order in the front end, and then assigning the right customer to it.\r\n\r\nIs there any interest/ideas for developing that sort of functionality in core, or should this be developed on a extension-specific basis?\r\n\r\nI was thinking about taking a shot at it and send a pull request, but it might make more sense to brainstorm some ideas about it first, before doing any actual work.\r\n\r\nFrom a UX perspective, one way to do this would be to provide a \"Set product options\" button under \"Add meta\", which would display a set of extension-specific fields added by extensions via hooks. The core will simply allow posting this field content and provide an ajax handler where extensions could hook into to intercept their data and modify the order. The handler could then return the updated order content (line items, meta + fees).\r\n\r\nIn core, this infrastructure would be used to allow selecting variable product attributes, or to configure a grouped product. Extensions could do whatever they want with it."}}