{"id":1484842,"date":"2018-03-21T07:59:45","date_gmt":"2018-03-21T14:59:45","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/"},"modified":"2018-03-21T07:59:45","modified_gmt":"2018-03-21T14:59:45","slug":"add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/","title":{"rendered":"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am using this extension (with all plugins updated to the latest versions) along with Woocommerce subscriptions in order to manage a membership \/ subscription website.<\/p>\n<p>The automatic renewal order email for the subscriptions show some css in the product description column (as you can see in the attached screenshot).<\/p>\n<p>After some investigation I have found that this was caused by your extension and I easily fixed this editing index.php and moving lines 103\/104 inside the &#8220;if&#8221; clause starting at line 79 that checks if the product is actually a ticket.<\/p>\n<p>This is the final version after the edit<\/p>\n<pre><code>\/\/ Show event details if this ticket is for a tribe event.\n\t\tif ( ! empty( $event ) ) {\n\t\t\t$event_time = tribe_events_event_schedule_details( $event, &#039;&lt;em&gt;&#039;, &#039;&lt;\/em&gt;&#039; );\n\t\t\t$event_address = tribe_get_full_address( $event );\n\t\t\t$event_details = array();\n\n\t\t\t\/\/ Output event title in same format as Community Tickets.\n\t\t\t$event_details[] = sprintf(\n\t\t\t\t&#039;&lt;a href=&quot;%1$s&quot; class=&quot;event-title&quot;&gt;%2$s&lt;\/a&gt;&#039;,\n\t\t\t\tesc_attr( get_permalink( $event ) ),\n\t\t\t\tesc_html( get_the_title( $event ) )\n\t\t\t);\n\n\t\t\tif ( ! empty( $event_time ) ) {\n\t\t\t\t$event_details[] = $event_time;\n\t\t\t}\n\t\t\tif ( ! empty( $event_address ) ) {\n\t\t\t\t$event_details[] = $event_address;\n\t\t\t}\n\t\t\tprintf(\n\t\t\t\t&#039;&lt;div class=&quot;tribe-event-details&quot;&gt;%1$s&lt;\/div&gt;&#039;,\n\t\t\t\timplode( $event_details, &#039;&lt;br \/&gt;&#039; )\n\t\t\t);\n\n\t\t\t\/\/Mario Acunto fix @2018-03-21 15:28\n\t\t\t$this-&gt;output_woo_attendee_styles();\n\t\t\t$this-&gt;echo_attendee_meta( $order-&gt;get_id(), $item_data[&#039;product_id&#039;] );\n\n\t\t}\n\t}<\/code><\/pre>\n<p>My problem is solved but I was wondering if you could double checked and include this fix in a next version of the extension. I do not like to hack plugin code like this but I needed an urgent fix! <\/p>\n<p>Thank you in advance!<\/p>\n<p>Mario<\/p>\n","protected":false},"template":"","class_list":["post-1484842","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>Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -<\/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\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -\" \/>\n<meta property=\"og:description\" content=\"Hello, I am using this extension (with all plugins updated to the latest versions) along with Woocommerce subscriptions in order to manage a membership \/ subscription website. The automatic renewal order email for the subscriptions show some css in the product description column (as you can see in the attached screenshot). After some investigation I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/\" \/>\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\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/\",\"name\":\"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-03-21T14:59:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/#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\":\"Additional Help\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Extensions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/extensions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug\"}]},{\"@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":"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -","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\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/","og_locale":"en_US","og_type":"article","og_title":"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -","og_description":"Hello, I am using this extension (with all plugins updated to the latest versions) along with Woocommerce subscriptions in order to manage a membership \/ subscription website. The automatic renewal order email for the subscriptions show some css in the product description column (as you can see in the attached screenshot). After some investigation I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/","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\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/","name":"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-03-21T14:59:45+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-event-and-attendee-information-to-woocommerce-order-details-1-0-1-email-bug\/#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":"Additional Help","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/"},{"@type":"ListItem","position":4,"name":"Extensions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/extensions\/"},{"@type":"ListItem","position":5,"name":"Add Event and Attendee Information to WooCommerce Order Details 1.0.1: email bug"}]},{"@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\/1484842","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\/1484842\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1484842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}