Hello,
We use TheEventsCalendar.com plugin along with their paid plugin Events Tickets Plus.
Their plugin has a conflict with X Theme that causes the checkout process to break. They built in a workaround which has worked fine for the past couple of years and now no longer works. Their support sent me a lengthy response. While I think they should contact you directly to sort out the bug, I am not the middle man…
Please look through their response and sample code from another theme that resolved the issue. Hopefully this will make sense and could possibly be an easy fix in the functions file.
Thanks,
Micah
From: support@theeventscalendar.com support@theeventscalendar.com
Sent: Tuesday, February 4, 2020 9:57 AM
To: ************
Subject: Re: Ticket Checkout Process is broken again - [DVZ-FMGQI-575]
Hi there,
Thanks for reaching out. I’d be happy to help with your question.
I believe what you are experiencing is related to an open bug ticket that we have. For some reason, when assigning a custom page for the attendee registration, things are not working properly. While it uses the “slug” for the page you created, it is still loading as if the default attendee registration.
The X theme is amongst the themes that don’t play nice with our default attendee registration template, due to how they handle archives and excerpts. The custom page option was added to give people using themes like this a workaround. Unfortunately, due to the current bug, the workaround is not functioning.
Another theme that behaves this way is Genesis. We have some information and a snippet for Genesis based themes, and the basic information might also apply with X-theme. https://theeventscalendar.com/knowledgebase/k/genesis-framework-and-attendee-registration/
I would look to see if your theme provides similar settings, or has similar hooks/filters available. If so, you should be able to get the template to display correctly using the default attendee registration page.
In any case, I am attaching this support thread to the bug ticket, and we will follow up with you here as soon as we have news about this.
Regards,
Sky
// Fix for the attendee registration page glitch with Genesis
add_action( 'genesis_before_loop', 'tribe_tickets_fix_etp_attendee_registration_page_for_genesis' );
function tribe_tickets_fix_etp_attendee_registration_page_for_genesis() {
if ( ! function_exists( 'tribe' ) ) {
return;
}
try {
if ( tribe( 'tickets.attendee_registration' )->is_on_page() ) {
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'do_post_content' );
}
} catch ( Exception $e ) {}
}
function do_post_content() {
the_content();
}