Support

Home Forums Event Espresso Premium Duplicate Available Tickets Box

Duplicate Available Tickets Box

Posted: May 31, 2018 at 4:34 pm

Viewing 2 reply threads


Jos

May 31, 2018 at 4:34 pm

HI there,

I’m using the following code to move the ticket selector below the dates and wp loop on my page template.

//* Event Espresso Ticket Selector Move Function

add_filter ('the_content', 'my_move_stuff_around', 100 );

// move stuff around
function my_move_stuff_around( $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', 122);
    }
    return $content;
}

// add tickets after the datetimes
function my_add_event_tickets( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-tickets.php' );
}

It’s worked until recent updates and now shows a duplicate ticket selector. How can I remove the duplicate?

thanks


Jos

May 31, 2018 at 4:35 pm

You can see the effect here:

https://eissa.onespiritinc.com/events/ultimate-sales-course/


Josh

  • Support Staff

May 31, 2018 at 4:40 pm

Hi Jos,

You can remove the code and go to Event Espresso > Events > Templates where there are now options to move the location of the Ticket Selector box.

Viewing 2 reply threads

The support post ‘Duplicate Available Tickets Box’ 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