{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/11353","repository_url":"https://api.github.com/repos/woothemes/woocommerce","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11353/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11353/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11353/events","html_url":"https://github.com/woothemes/woocommerce/issues/11353","id":163750789,"number":11353,"title":"Meta data saved at woocommerce_pre_payment_complete not output in completed order emails","user":{"login":"Einkoro","id":1577833,"avatar_url":"https://avatars.githubusercontent.com/u/1577833?v=3","gravatar_id":"","url":"https://api.github.com/users/Einkoro","html_url":"https://github.com/Einkoro","followers_url":"https://api.github.com/users/Einkoro/followers","following_url":"https://api.github.com/users/Einkoro/following{/other_user}","gists_url":"https://api.github.com/users/Einkoro/gists{/gist_id}","starred_url":"https://api.github.com/users/Einkoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Einkoro/subscriptions","organizations_url":"https://api.github.com/users/Einkoro/orgs","repos_url":"https://api.github.com/users/Einkoro/repos","events_url":"https://api.github.com/users/Einkoro/events{/privacy}","received_events_url":"https://api.github.com/users/Einkoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T23:19:51Z","updated_at":"2016-07-04T23:19:51Z","closed_at":null,"body":"When using ``wc_add_order_item_meta`` to save data within the hook ``woocommerce_pre_payment_complete`` the customer order completed emails are missing the meta data lines. L49 of templates/emails/email-order-items.php output is as follows:\r\n```\r\n<br/><small></small>\r\n```\r\n\r\nHowever when I use the resend order emails action for completed order from wp-admin the email sends with the meta data as expected:\r\n```\r\n<br/><small>License Key(s):\r\nECJK...VQRX</small>\r\n```\r\n\r\nThe orders consists entirely of virtual / downloadable products and is completed immediately as expected without being set to processing first. Looking through the code it seems the meta data should be saved before the email is sent but the behaviour seems to indicate otherwise."}}
{"actor":{"display_login":"Einkoro"}}