Support

Home Forums Event Espresso Premium Multiple Tickets Displying for Event

Multiple Tickets Displying for Event

Posted: October 21, 2018 at 2:30 pm

Viewing 9 reply threads


Kerry West

October 21, 2018 at 2:30 pm

My event has two sessions, and two tickets but the ticket area is showing each ticket of the event twice, so instead of two ticket selections, there are four. So the info is showing twice. Not sure how to correct this.


Tony

  • Support Staff

October 22, 2018 at 4:38 am

Hi there,

Can you link me to an event I can view this on, please?


Kerry West

October 22, 2018 at 7:58 am

This reply has been marked as private.


Tony

  • Support Staff

October 22, 2018 at 9:56 am

Have you added the [ESPRESSO_TICKET_SELECTOR event_id=xxx] shortcode into your event content?

It looks like the shortcode has been added to the event description but EE automatically injects the ticket selector into the event, so adding the shortcode add another ticket selector onto the event.


Kerry West

October 22, 2018 at 10:57 am

This reply has been marked as private.


Kerry West

October 22, 2018 at 11:10 am

This reply has been marked as private.


Josh

  • Support Staff

October 22, 2018 at 11:16 am

Hi,

You’ll need to make some edits to your child theme’s functions.php file. There’s code in there that’s making the multiple tickets display.

The following code needs to be removed:

//* Changes layout of Events Espresso Tickets

add_filter ('the_content', 'my_remove_event_tickets', 100 );
 
// remove tickets
function my_remove_event_tickets( $content ) {
    if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
        remove_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120 );
        add_filter( 'the_content', 'my_add_event_tickets', 121);
    }
    return $content;
}
 
// add tickets after the content
function my_add_event_tickets( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-tickets.php' );
}


Kerry West

October 22, 2018 at 5:11 pm

This reply has been marked as private.


Josh

  • Support Staff

October 22, 2018 at 5:33 pm

You can go to Event Espresso > Events > Templates and change the setting to show the ticket information at the bottom.


Kerry West

October 22, 2018 at 5:47 pm

This reply has been marked as private.
Viewing 9 reply threads

The support post ‘Multiple Tickets Displying for Event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso