{"id":1141718,"date":"2016-07-19T15:33:15","date_gmt":"2016-07-19T22:33:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/"},"modified":"2016-07-19T15:33:15","modified_gmt":"2016-07-19T22:33:15","slug":"adding-attendee-data-to-woocommerce-email-confirmation","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/","title":{"rendered":"Adding Attendee Data to WooCommerce Email Confirmation"},"content":{"rendered":"<p>Hi guys,<\/p>\n<p>I have read many posts about adding event specific data to the email confirmation generated by WooCommerce and have managed to add event title, date and time to this email.<\/p>\n<p>One thing that would finish the whole things off perfectly would be if the attendee meta gathered from the custom questions could also be added to this email after each ticket type.<\/p>\n<p>I appreciate this is above the scope of support but some points or quick advice would be great if at all possible.<\/p>\n<p>One previous post provided this snippet which unfortunately no longer works since the last update;<\/p>\n<p>\t\/*&#8212;-[ADD CUSTOM META TO ORDER EMAIL\/INVOICE]&#8212;-*\/<br \/>\n\tfunction mse_woocommerce_order_item_meta_end( $item_id, $item, $order ) {<br \/>\n\t\t$order_items = $order-&gt;get_items();<br \/>\n\t\t$post_custom_keys = get_post_meta( $order-&gt;id );<br \/>\n\t\tif (array_key_exists(&#8216;_mse_order_fieldset_meta&#8217;, $post_custom_keys)) {<br \/>\n\t\t\t$fieldset_questions = get_post_custom_values(&#8216;_mse_order_fieldset_meta&#8217;, $order-&gt;id);<br \/>\n\t\t\t$fieldset_questions = unserialize($fieldset_questions[0]);<br \/>\n\t\t\tforeach ($fieldset_questions as $item =&gt; $fs_questions) {<br \/>\n\t\t\t\tif ($item_id == $item) {<br \/>\n\t\t\t\t\tforeach ($fs_questions as $fs_question =&gt; $fs_meta) {<br \/>\n\t\t\t\t\t\tif (strpos($fs_meta[&#8216;answer&#8217;], &#8216;|&#8217;)) {<br \/>\n\t\t\t\t\t\t\t$fs_meta[&#8216;answer&#8217;] = str_replace(&#8216;|&#8217;, &#8216;, &#8216;, $fs_meta[&#8216;answer&#8217;]);<br \/>\n\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t\techo &#8216;&lt;br&gt;&lt;b&gt;&#8217; . $fs_meta[&#8216;label&#8217;] . &#8216;: &lt;\/b&gt;&#8217; . $fs_meta[&#8216;answer&#8217;];<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t}<br \/>\n\t\t\t}<br \/>\n\t\t}<br \/>\n\t}<\/p>\n<p>\tadd_action( &#8216;woocommerce_order_item_meta_end&#8217;, &#8216;mse_woocommerce_order_item_meta_end&#8217;, 10, 3 );<\/p>\n<p>If there is something obvious from the above that changed to break the above any advice would be appreciated.<\/p>\n<p>The attendee custom meta is of course shown in the tickets email so there must be a function somewhere to generate and add this data to an email. <\/p>\n<p>I have looked everywhere for that bit of code but could not find where this function is generated that might allow me to hook it in to the other emails as well.  Any idea what file (and where it is located) generates this output?<\/p>\n<p>Thanks for any help possible on the above.<\/p>\n<p>Regards,<\/p>\n<p>Frank<\/p>\n","protected":false},"template":"","class_list":["post-1141718","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Attendee Data to WooCommerce Email Confirmation -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Attendee Data to WooCommerce Email Confirmation -\" \/>\n<meta property=\"og:description\" content=\"Hi guys, I have read many posts about adding event specific data to the email confirmation generated by WooCommerce and have managed to add event title, date and time to this email. One thing that would finish the whole things off perfectly would be if the attendee meta gathered from the custom questions could also [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/\",\"name\":\"Adding Attendee Data to WooCommerce Email Confirmation -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-19T22:33:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Adding Attendee Data to WooCommerce Email Confirmation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding Attendee Data to WooCommerce Email Confirmation -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/","og_locale":"en_US","og_type":"article","og_title":"Adding Attendee Data to WooCommerce Email Confirmation -","og_description":"Hi guys, I have read many posts about adding event specific data to the email confirmation generated by WooCommerce and have managed to add event title, date and time to this email. One thing that would finish the whole things off perfectly would be if the attendee meta gathered from the custom questions could also [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/","name":"Adding Attendee Data to WooCommerce Email Confirmation -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-19T22:33:15+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-attendee-data-to-woocommerce-email-confirmation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Adding Attendee Data to WooCommerce Email Confirmation"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1141718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1141718\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1141718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}