Moving Ticket Form Location

Home Forums Ticket Products Event Tickets Plus Moving Ticket Form Location

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1097883
    Simon
    Participant

    Hello,

    I would like to move the ticket form to the top of a single event section from the bottom.
    I have read https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/
    but can not seem to make it work.

    There used to be a two or three line piece of code in the forums somewhere which had worked for me in the past.

    Any suggestions?

    Thank you,

    Simon

    #1098597
    Nico
    Member

    Hi there Simon,

    Thanks for reaching out! Hopefully I can help you here…

    Please let me know which e-commerce platform you are using (or if it RSVP tickets), and I’ll paste the necessary code in here.

    Best,
    Nico

    #1098710
    Simon
    Participant

    Thank you Nico. I am using Woocommerce with Events Tickets Plus. It has RSVP but I was trying to move the ticket box up the page. Perhaps code to move both tickets and rsvp is possible? Thank you very much. Simon

    #1098823
    Dean
    Participant

    Hi,

    I was just going to post this to the forum as I have the same problem today. I’m using the most up to date version of Events Ticket Plus (4.1.1) and previously the RSVP section would move to the top by the code examples documented throughout this forum.

    When I switched over to WooCommerce today with paid for tickets and tried to move the ticket section via the code here to the top (or anywhere) it doesn’t work.
    https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/

    Thank you.

    • This reply was modified 10 years ago by Dean.
    #1099498
    Simon
    Participant

    Nico, I wonder if you have made any progress on the code? Thank you very much. Simon

    #1099517
    Nico
    Member

    Hi Simon,

    Thanks for following up and for the patience!

    I could verify that the snippet in the article is not working for me as well ๐Ÿ™ I’ll investigate on why it’s not working…

    In the meantime I made a simplified version of it just for Woo & RSVP:


    /* Move the WooCommerce Tickets form */

    if ( class_exists( 'Woocommerce' ) && class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {

    $display_function = array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' );

    remove_action( 'tribe_events_single_event_after_the_meta', $display_function, 5 );
    add_action( 'tribe_events_single_event_after_the_content', $display_function );
    }

    /* Move the RSVP Tickets form */

    if ( class_exists( 'Tribe__Tickets__RSVP' ) ) {

    $display_function = array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' );

    remove_action( 'tribe_events_single_event_after_the_meta', $display_function, 5 );
    add_action( 'tribe_events_single_event_after_the_content', $display_function );
    }

    Try pasting the code in your theme’s functions.php and let me know if it works for you.

    Best,
    Nico

    #1099909
    Simon
    Participant

    Hi Nico, Thank you for the code. Unfortunately it seems not to work but generate this error

    Parse error: syntax error, unexpected ‘;’ in /home/simonl5/public_html/drawingnewyork.com/wp-content/themes/sushi/functions.php on line 4

    Do I need to put a tag before and after it or place is somewhere specific in the function code?

    Thank you again.

    Simon

    #1099954
    Dean
    Participant

    Hi Nico,

    Since I’m using Events Ticket Plus is it best for me to open a new support thread for that software or will your further changes look into this? I don’t want to hijack this thread.

    Thank you.

    #1100040
    Nico
    Member

    Hey folks,

    Thanks for following up! We have fixed the snippet in the article Moving the ticket form, so you might try that before creating a new post Dean, if it still doesn’t work for you then please go ahead and create a new thread for the issue.

    Simon, sorry to hear about the syntax error. Please be sure to paste the snippet at the bottom of the functions.php file, before the php closing tag ?> if any present in the file. If the error continues please upload the complete code of functions.php to a service like PasteBin or GitHub Gists, and share the link in a private reply.

    Thanks,
    Have a great weekend,
    Nico

    #1100055
    Dean
    Participant

    Hi Nico,

    Thank you for this. I can confirm it worked!

    Dean

    #1100890
    Nico
    Member

    Thanks for the heads-up Dean!

    Simon, please let me know if the updated KB code now works for you.

    Best,
    Nico

    #1100947
    Simon
    Participant

    Nico, Thank you very much.
    It does work for me and I very much appreciate your assistance.
    Simon

    #1101392
    Nico
    Member

    Hey Simon,

    Glad to hear this is working for you as well.

    Thanks both for reporting the broken snippet in the article and sorry for the inconvenience that might caused. Hopefully the fix will help other users as well ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Moving Ticket Form Location’ is closed to new replies.