This thread is resolved. Here is a description of the problem and solution.
Problem:
When the WPML plugin is active, creating a new ticket on an existing event using the Event Tickets Plus plugin results in a blank screen instead of displaying editable attendee information fields. Disabling WPML resolves the issue, indicating a conflict between WPML and Event Tickets Plus.
Solution:
We have identified that the Event Tickets Plus plugin is not fully compatible with WPML. Although we attempted to establish a partnership with the plugin's author, they were not responsive. As a workaround, you can add the following code to your functions.php file to handle the language details for ticket products using WPML:
function set_wpml_language_for_ticket_product( $sourcepost, $ticket ) {<br /> if ( ! $ticket->ID || get_post_type( $ticket->ID ) !== 'product' ) {<br /> return;<br /> }<br /> $set_language_args = array(<br /> 'element_id' => $ticket->ID,<br /> 'element_type' => 'post_product',<br /> 'trid' => false,<br /> 'language_code' => apply_filters( 'wpml_current_language', NULL ),<br /> 'source_language_code' => NULL<br /> );<br /> do_action( 'wpml_set_element_language_details', $set_language_args );<br />}<br />add_action( 'event_tickets_after_create_ticket', 'set_wpml_language_for_ticket_product', 10, 2 );
This code snippet ensures that the language details are set correctly for ticket products when they are created. If this solution does not resolve your issue or becomes outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.