{"id":1137149,"date":"2016-07-08T03:11:30","date_gmt":"2016-07-08T10:11:30","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/"},"modified":"2016-07-08T03:11:30","modified_gmt":"2016-07-08T10:11:30","slug":"customising-the-new-order-e-mail-to-include-ticket-details","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/","title":{"rendered":"Customising the New Order E-mail to include ticket details"},"content":{"rendered":"<p>I&#8217;ve decided to scrap the word doc attachments in my previous posts. Instead I want to customise the new order e-mail. I want to add the venue, and some text based on the title\/location.<\/p>\n<p>How can I go about this? I have found a function online which sets text based on the payment method of the order, I wonder if something similar can be done with this, like the order&#8217;s venue? I&#8217;ve posted this function below.<\/p>\n<pre><code>add_action( &#039;woocommerce_email_before_order_table&#039;, &#039;add_order_email_instructions&#039;, 10, 2 );\n \nfunction add_order_email_instructions( $order, $sent_to_admin ) {\n  \n  if ( ! $sent_to_admin ) {\n \n    if ( &#039;cod&#039; == $order-&gt;payment_method ) {\n      \/\/ cash on delivery method\n      echo &#039;&lt;p&gt;&lt;strong&gt;Instructions:&lt;\/strong&gt; Full payment is due immediately upon delivery: &lt;em&gt;cash only, no exceptions&lt;\/em&gt;.&lt;\/p&gt;&#039;;\n    } else {\n      \/\/ other methods (ie credit card)\n      echo &#039;&lt;p&gt;&lt;strong&gt;Instructions:&lt;\/strong&gt; Please look for &quot;Madrigal Electromotive GmbH&quot; on your next credit card statement.&lt;\/p&gt;&#039;;\n    }\n  }\n}<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1137149","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>Customising the New Order E-mail to include ticket details -<\/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\/customising-the-new-order-e-mail-to-include-ticket-details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customising the New Order E-mail to include ticket details -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve decided to scrap the word doc attachments in my previous posts. Instead I want to customise the new order e-mail. I want to add the venue, and some text based on the title\/location. How can I go about this? I have found a function online which sets text based on the payment method of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/\" \/>\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\/customising-the-new-order-e-mail-to-include-ticket-details\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/\",\"name\":\"Customising the New Order E-mail to include ticket details -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-08T10:11:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/#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\":\"Customising the New Order E-mail to include ticket details\"}]},{\"@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":"Customising the New Order E-mail to include ticket details -","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\/customising-the-new-order-e-mail-to-include-ticket-details\/","og_locale":"en_US","og_type":"article","og_title":"Customising the New Order E-mail to include ticket details -","og_description":"I&#8217;ve decided to scrap the word doc attachments in my previous posts. Instead I want to customise the new order e-mail. I want to add the venue, and some text based on the title\/location. How can I go about this? I have found a function online which sets text based on the payment method of [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/","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\/customising-the-new-order-e-mail-to-include-ticket-details\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/","name":"Customising the New Order E-mail to include ticket details -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-08T10:11:30+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-new-order-e-mail-to-include-ticket-details\/#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":"Customising the New Order E-mail to include ticket details"}]},{"@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\/1137149","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\/1137149\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1137149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}