{"id":1172652,"date":"2016-10-05T05:51:01","date_gmt":"2016-10-05T12:51:01","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/"},"modified":"2016-10-06T07:29:41","modified_gmt":"2016-10-06T14:29:41","slug":"insert-ticket-field-set-with-ur-snippet-on-email-dont-work","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/","title":{"rendered":"insert ticket field set with ur snippet on email don&#8217;t work"},"content":{"rendered":"<p>hello,<\/p>\n<p>i use this snippet below to insert the fields on the the ticket send by mail but it doesn&#8217;t work for me,<br \/>\nmaybe, its my slug name are wrong ( where can i find it ?<\/p>\n<p><code><br \/>\n\/\/add_action( 'woocommerce_email_customer_details', 'gum_woo_checkout_fields_email_customer' );<br \/>\nfunction gum_woo_checkout_fields_email_customer( $order ) {<\/p>\n<p>    $fieldset_meta = get_post_meta( $order->id, Tribe__Tickets_Plus__Meta::META_KEY, true );<br \/>\n    $cnt = 1;<\/p>\n<p>    if (! $fieldset_meta ) return;<\/p>\n<p>    echo '<\/p>\n<h3> Course Participants <\/h3>\n<p>';<\/p>\n<p>    foreach( $fieldset_meta AS $item => $value ) {<\/p>\n<p>        foreach( $fieldset_meta[$item] AS $key => $value ) {<\/p>\n<p>                $att_fname         = (isset( $value['prenom'] )) ? $value['prenom'] : '';<br \/>\n                $att_lname         = (isset( $value['nom'] )) ? $value['nom'] : '';<br \/>\n                $att_email         = (isset( $value['email'] )) ? $value['email'] : '';<br \/>\n                $att_phone         = (isset( $value['telephone'] )) ? $value['telephone'] : '';<br \/>\n                $att_profession    = (isset( $value['profession'] )) ? $value['profession'] : '';<br \/>\n                $att_license       = (isset( $value['license'] )) ? $value['license'] : '';<\/p>\n<p>                echo '<\/p>\n<p>';<br \/>\n                echo '<strong>Attendee - '. $cnt .'<\/strong><br \/>';<br \/>\n                echo 'Name: '. $att_fname .' '. $att_lname .'<br \/>';<br \/>\n                echo 'Email: '. $att_email .'<br \/>';<br \/>\n                echo 'Phone: '. $att_phone .'<br \/>';<br \/>\n                echo 'Profession: '. $att_profession .'<br \/>';<br \/>\n                echo 'License #: '. $att_license .'<br \/>';<br \/>\n                echo '<\/p>\n<p>';<\/p>\n<p>            $cnt++;<\/p>\n<p>        }<\/p>\n<p>    }<br \/>\n}<br \/>\n<\/code><\/p>\n<p>all the best<\/p>\n<p>alexender<\/p>\n","protected":false},"template":"","class_list":["post-1172652","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>insert ticket field set with ur snippet on email don&#039;t work -<\/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\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"insert ticket field set with ur snippet on email don&#039;t work -\" \/>\n<meta property=\"og:description\" content=\"hello, i use this snippet below to insert the fields on the the ticket send by mail but it doesn&#8217;t work for me, maybe, its my slug name are wrong ( where can i find it ? \/\/add_action( &#039;woocommerce_email_customer_details&#039;, &#039;gum_woo_checkout_fields_email_customer&#039; ); function gum_woo_checkout_fields_email_customer( $order ) { $fieldset_meta = get_post_meta( $order-&gt;id, Tribe__Tickets_Plus__Meta::META_KEY, true ); $cnt = [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-10-06T14:29:41+00:00\" \/>\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\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/\",\"name\":\"insert ticket field set with ur snippet on email don't work -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-05T12:51:01+00:00\",\"dateModified\":\"2016-10-06T14:29:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/#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\":\"insert ticket field set with ur snippet on email don&#8217;t work\"}]},{\"@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":"insert ticket field set with ur snippet on email don't work -","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\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/","og_locale":"en_US","og_type":"article","og_title":"insert ticket field set with ur snippet on email don't work -","og_description":"hello, i use this snippet below to insert the fields on the the ticket send by mail but it doesn&#8217;t work for me, maybe, its my slug name are wrong ( where can i find it ? \/\/add_action( 'woocommerce_email_customer_details', 'gum_woo_checkout_fields_email_customer' ); function gum_woo_checkout_fields_email_customer( $order ) { $fieldset_meta = get_post_meta( $order->id, Tribe__Tickets_Plus__Meta::META_KEY, true ); $cnt = [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/","article_modified_time":"2016-10-06T14:29:41+00:00","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\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/","name":"insert ticket field set with ur snippet on email don't work -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-05T12:51:01+00:00","dateModified":"2016-10-06T14:29:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/insert-ticket-field-set-with-ur-snippet-on-email-dont-work\/#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":"insert ticket field set with ur snippet on email don&#8217;t work"}]},{"@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\/1172652","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1172652\/revisions"}],"predecessor-version":[{"id":1173188,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1172652\/revisions\/1173188"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1172652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}