Home › Forums › Ticket Products › Event Tickets Plus › Moving Ticket Form Location
- This topic has 12 replies, 3 voices, and was last updated 10 years ago by
Nico.
-
AuthorPosts
-
April 4, 2016 at 8:05 am #1097883
Simon
ParticipantHello,
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
April 5, 2016 at 1:43 pm #1098597Nico
MemberHi 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,
NicoApril 5, 2016 at 5:32 pm #1098710Simon
ParticipantThank 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
April 6, 2016 at 1:46 am #1098823Dean
ParticipantHi,
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.
April 7, 2016 at 5:54 am #1099498Simon
ParticipantNico, I wonder if you have made any progress on the code? Thank you very much. Simon
April 7, 2016 at 6:57 am #1099517Nico
MemberHi 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,
NicoApril 7, 2016 at 7:29 pm #1099909Simon
ParticipantHi 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
April 8, 2016 at 12:08 am #1099954Dean
ParticipantHi 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.
April 8, 2016 at 7:39 am #1100040Nico
MemberHey 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,
NicoApril 8, 2016 at 8:03 am #1100055Dean
ParticipantHi Nico,
Thank you for this. I can confirm it worked!
Dean
April 11, 2016 at 10:53 am #1100890Nico
MemberThanks for the heads-up Dean!
Simon, please let me know if the updated KB code now works for you.
Best,
NicoApril 11, 2016 at 1:21 pm #1100947Simon
ParticipantNico, Thank you very much.
It does work for me and I very much appreciate your assistance.
SimonApril 12, 2016 at 9:28 am #1101392Nico
MemberHey 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 -
This reply was modified 10 years ago by
-
AuthorPosts
- The topic ‘Moving Ticket Form Location’ is closed to new replies.
