RSVP/Ticket information not moving above meta

Home Forums Calendar Products Events Calendar PRO RSVP/Ticket information not moving above meta

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1168838
    David Akers
    Participant

    We updated the functions.php file with the information provided in the thread https://theeventscalendar.com/knowledgebase/moving-rsvp-ticket-forms/

    Here’s the code we added:
    if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {

    // Remove the form from its default location (after the meta).
    remove_action( ‘tribe_events_single_event_after_the_meta’, array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), ‘front_end_tickets_form’ ), 5 );
    }
    if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {

    // Place the form in the new location (before the content).
    add_action( ‘tribe_events_single_event_after_the_content’, array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), ‘front_end_tickets_form’ ), 5 );
    }
    if ( class_exists( ‘Tribe__Tickets__RSVP’ ) ) {

    // Remove the form from its default location (after the meta).
    remove_action( ‘tribe_events_single_event_after_the_meta’, array( Tribe__Tickets__RSVP::get_instance(), ‘front_end_tickets_form’ ), 5 );
    }
    if ( class_exists( ‘Tribe__Tickets__RSVP’ ) ) {

    // Add the form to its new location (before the content).
    add_action( ‘tribe_events_single_event_after_the_content’, array( Tribe__Tickets__RSVP::get_instance(), ‘front_end_tickets_form’ ), 5 );
    }

    Nothing is changing in the event view. The RSVP and ticket options still show after the meta information.

    #1169223
    Nico
    Member

    Hi there David,

    Thanks for getting in touch with us! I’ll help you here…

    First of can you please send over a link to an active event with tickets in your site? I don’t see any cache plugins active in your site but if there’s one installed, please try flushing the stored cache and re-test.

    Also, if you switch the site theme to Tweenty Sixteen (WordPress default theme) and move the code to the corresponding functions.php file does it work as expected?

    Last but not least, you can reduce the code to:


    if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
    // Remove the form from its default location (after the meta).
    remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 5 );
    // Place the form in the new location (after the content).
    add_action( 'tribe_events_single_event_after_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 5 );
    }

    if ( class_exists( 'Tribe__Tickets__RSVP' ) ) {
    // Remove the form from its default location (after the meta).
    remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    // Add the form to its new location (after the content).
    add_action( 'tribe_events_single_event_after_the_content', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
    }

    I just tested the code and it’s working for me!

    Please let me know about it,
    Best,
    Nico

    #1169345
    David Akers
    Participant

    This reply is private.

    #1170306
    Nico
    Member

    This reply is private.

    #1180643
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘RSVP/Ticket information not moving above meta’ is closed to new replies.