{"id":1173212,"date":"2016-10-06T08:06:45","date_gmt":"2016-10-06T15:06:45","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/"},"modified":"2016-10-06T08:06:45","modified_gmt":"2016-10-06T15:06:45","slug":"include-attendee-details-in-order-email","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/","title":{"rendered":"Include Attendee Details in Order Email"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;m trying to include the attendee fields I&#8217;ve created into my woocommerce new order email.<\/p>\n<p>Based on another post. I&#8217;ve come up with the following:<\/p>\n<pre><code>\n&lt;?php  \n$fieldset_meta = get_post_meta( $order-&gt;id, Tribe__Tickets_Plus__Meta::META_KEY, true );\n$i = 1;\n      \nif (! $fieldset_meta ) return;\n  \necho &#039;&lt;h3&gt;Attendee List&lt;\/h3&gt;&#039;;\n      \nforeach( $fieldset_meta AS $item =&gt; $value ) {\n          \n\tforeach( $fieldset_meta[$item] AS $key =&gt; $value ) {\n                  \n\t\t$att_name = (isset( $value[&#039;name&#039;] )) ? $value[&#039;name&#039;] : &#039;&#039;;\t\t\n\t\t$att_email = (isset( $value[&#039;email&#039;] )) ? $value[&#039;email&#039;] : &#039;&#039;;\n\t\t$att_phone = (isset( $value[&#039;telephone&#039;] )) ? $value[&#039;telephone&#039;] : &#039;&#039;;\n                                  \n\t\techo &#039;&lt;p&gt;&#039;;\n\t\techo &#039;&lt;strong&gt;Attendee - &#039;. $i .&#039;&lt;\/strong&gt;&lt;br \/&gt;&#039;;\n\t\techo &#039;Name: &#039;. $att_name .&#039;&lt;br \/&gt;&#039;;\n\t\techo &#039;Email: &#039;. $att_email .&#039;&lt;br \/&gt;&#039;;\n\t\techo &#039;Phone: &#039;. $att_phone .&#039;&lt;br \/&gt;&#039;;                \n\t\techo &#039;&lt;\/p&gt;&#039;;\n              \n\t\t$i++;                            \n\t}          \n}\n?&gt;\n<\/code><\/pre>\n<p>Do I simply add this to my woocommerce\/emails\/email-order-items.php email template (within my theme) or do I need to do anything else? I believe this should work but can&#8217;t find much info on it unless I&#8217;ve missed the obvious!?<\/p>\n<p>Thanks in advanced.<\/p>\n","protected":false},"template":"","class_list":["post-1173212","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>Include Attendee Details in Order Email -<\/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\/include-attendee-details-in-order-email\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Include Attendee Details in Order Email -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;m trying to include the attendee fields I&#8217;ve created into my woocommerce new order email. Based on another post. I&#8217;ve come up with the following: &lt;?php $fieldset_meta = get_post_meta( $order-&gt;id, Tribe__Tickets_Plus__Meta::META_KEY, true ); $i = 1; if (! $fieldset_meta ) return; echo &#039;&lt;h3&gt;Attendee List&lt;\/h3&gt;&#039;; foreach( $fieldset_meta AS $item =&gt; $value ) { foreach( $fieldset_meta[$item] [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/\",\"name\":\"Include Attendee Details in Order Email -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-06T15:06:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/#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\":\"Include Attendee Details in Order Email\"}]},{\"@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":"Include Attendee Details in Order Email -","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\/include-attendee-details-in-order-email\/","og_locale":"en_US","og_type":"article","og_title":"Include Attendee Details in Order Email -","og_description":"Hi, I&#8217;m trying to include the attendee fields I&#8217;ve created into my woocommerce new order email. Based on another post. I&#8217;ve come up with the following: &lt;?php $fieldset_meta = get_post_meta( $order-&gt;id, Tribe__Tickets_Plus__Meta::META_KEY, true ); $i = 1; if (! $fieldset_meta ) return; echo &#039;&lt;h3&gt;Attendee List&lt;\/h3&gt;&#039;; foreach( $fieldset_meta AS $item =&gt; $value ) { foreach( $fieldset_meta[$item] [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/","name":"Include Attendee Details in Order Email -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-06T15:06:45+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/include-attendee-details-in-order-email\/#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":"Include Attendee Details in Order Email"}]},{"@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\/1173212","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\/1173212\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1173212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}