{"id":1269212,"date":"2017-04-12T16:57:43","date_gmt":"2017-04-12T23:57:43","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/"},"modified":"2017-04-12T16:57:43","modified_gmt":"2017-04-12T23:57:43","slug":"event-tickets-plus-poor-wpml-support","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/","title":{"rendered":"Event Tickets Plus \/ Poor WPML Support"},"content":{"rendered":"<p>Hi,<br \/>\nI am very confused by the way the WPML support works for your plugin. I&#8217;ll just sum up my experience with the whole plugin and its WPML compatibility in couple of points:<\/p>\n<ul>\n<li>Personally, I don&#8217;t get the point why a ticket has to be tied to a Page\/Event. I run a festival, one event only -&gt; no need to have multiple events. I would really appreciate if I could create tickets as WooCommerce products only and not tied to a specific Page\/Event.<\/li>\n<li>After creating the Page and a ticket, a WooCommerce product is also created, however, it&#8217;s URL points to the created Page (which it is linked to) instead.<\/li>\n<li>However, when I translate the ticket (the Page it is tied to), there is no more ticket appended to that site<\/li>\n<li>So, I translated the ticket (the WooCommorce product) which works okay. However, the URL does not point to the translated page but it is displayed as a standard WooCommerce product instead. I don&#8217;t understand. This behavior creates such an inconsistency! I really don&#8217;t get the point. So, the ticket (in the default language) cannot be displayed as a standard WooCommerce product as it is somehow tied to its Page\/Event. However, the ticket&#8217;s translation can only be displayed as a WooCommerce product. Very, very bad.<\/li>\n<li>The subject line of the e-mail can&#8217;t be translated &#8211; string not found by WPML. Please, check that one out.<\/li>\n<\/ul>\n<p>Specific example:<br \/>\nI created a ticket called <strong>Super Early Bird<\/strong>: <a href=\"https:\/\/gastrofest.bigstep.sk\/listky\/super-early-bird\/\">https:\/\/gastrofest.bigstep.sk\/listky\/super-early-bird\/<\/a><br \/>\nI designed its page, hid the default Event Ticket design as I don&#8217;t like it. I&#8217;m using the following code to display the limit set on the ticket:<\/p>\n<pre><code>\nwindow.onload = function () { \n    var remaining = tribe_tickets_stock_data.tickets[28235].stock - 1;\n    (jQuery)(&#039;.cart-body .quantity input.qty&#039;).attr({\n        &quot;max&quot; : remaining\n    });\n    var onlyText = (remaining &gt; 0) ? &quot;u\u017e len &quot; : &#039;&#039;;\n    (jQuery)(&#039;.tribe-tickets-remaining .only-text&#039;).text(onlyText);\n    (jQuery)(&#039;.tribe-tickets-remaining .available-stock&#039;).text(remaining);\n    (jQuery)(&#039;.cart-body .quantity input.qty&#039;).keyup(function() {\n        var left = remaining - (jQuery)(this).val();\n        onlyText = (left &gt; 0) ? &quot;u\u017e len &quot; : &#039;&#039;;\n        (jQuery)(&#039;.tribe-tickets-remaining .only-text&#039;).text(onlyText);\n        (jQuery)(&#039;.tribe-tickets-remaining .available-stock&#039;).text(left);\n    });\n}\n<\/code><\/pre>\n<p>Then I created the translation of this page found at <a href=\"https:\/\/gastrofest.bigstep.sk\/hu\/jegyek\/super-early-bird\/\">https:\/\/gastrofest.bigstep.sk\/hu\/jegyek\/super-early-bird\/<\/a>. However, here my code does not work, since the <code>tribe_tickets_stock_data<\/code> variable is not set because the ticket is not linked to the translated Page.<br \/>\nSo, for the all the non-default languages I have to use the WooCommerce product pages which are not that well designed due to some limitations regarding the use of Visual Composer there.<\/p>\n<p>Summa summarum, I am quite frustrated by the means the whole translation works now. It creates inconsistency in my website. Overall, I would be glad if I could use the WooCommerce product template in all language mutations. I would expect to be able to create tickets as sole WooCommerce products without the need of creating a Page, as well.<\/p>\n","protected":false},"template":"","class_list":["post-1269212","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>Event Tickets Plus \/ Poor WPML Support -<\/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\/event-tickets-plus-poor-wpml-support\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Event Tickets Plus \/ Poor WPML Support -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am very confused by the way the WPML support works for your plugin. I&#8217;ll just sum up my experience with the whole plugin and its WPML compatibility in couple of points: Personally, I don&#8217;t get the point why a ticket has to be tied to a Page\/Event. I run a festival, one event [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/\" \/>\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\/event-tickets-plus-poor-wpml-support\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/\",\"name\":\"Event Tickets Plus \/ Poor WPML Support -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-04-12T23:57:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/#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\":\"Event Tickets Plus \/ Poor WPML Support\"}]},{\"@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":"Event Tickets Plus \/ Poor WPML Support -","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\/event-tickets-plus-poor-wpml-support\/","og_locale":"en_US","og_type":"article","og_title":"Event Tickets Plus \/ Poor WPML Support -","og_description":"Hi, I am very confused by the way the WPML support works for your plugin. I&#8217;ll just sum up my experience with the whole plugin and its WPML compatibility in couple of points: Personally, I don&#8217;t get the point why a ticket has to be tied to a Page\/Event. I run a festival, one event [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/","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\/event-tickets-plus-poor-wpml-support\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/","name":"Event Tickets Plus \/ Poor WPML Support -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-04-12T23:57:43+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-plus-poor-wpml-support\/#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":"Event Tickets Plus \/ Poor WPML Support"}]},{"@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\/1269212","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\/1269212\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1269212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}