Home › Forums › Ticket Products › Event Tickets Plus › hide ticket sales
- This topic has 6 replies, 2 voices, and was last updated 8 years, 7 months ago by Nico.
-
AuthorPosts
-
August 29, 2015 at 1:15 pm #1000228gcaottawaParticipant
Hello,
I need your help to figure out a way to hide the ticket sales off the event’s page. Because my users will be buying that ticket with other tickets with a bundle via the shopping page.
Thank you!
August 31, 2015 at 6:46 am #1000425NicoMemberHi gcaottawa,
Thanks for reaching out to us! Hopefully removing the tickets form from the event page is quite simple ๐
Just add the following lines to your functions.php file (located at wp-content/themes/your_theme/):
if (class_exists('Tribe__Events__Tickets__Woo__Main')) {
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Events__Tickets__Woo__Main::get_instance(), 'front_end_tickets_form'), 5 );
}
Please let me know if this does the trick,
Best,
NicoSeptember 3, 2015 at 7:00 am #1001582gcaottawaParticipantNico,
Thank you for the information.
Will this hide all ticket sales on all events?
I really just need it for one event.September 3, 2015 at 7:21 am #1001607gcaottawaParticipantNico,
I have tried your code and it works great! It disables the ticket sales from all events. (I can work with that.)
Need help with one more thing – How do I put those tickets for sale as a product in the WooCommerce store?
September 3, 2015 at 7:42 pm #1001994NicoMemberHi gcaottawa,
Thanks for following up on this. I’m glad to hear the code provided did the trick, sorry for the miss understanding – from your original description I understood you needed to remove the box from all events.
Regarding tickets visibility in the Shop page, just go to WP-Admin > Products > Edit the desired ticket. Just above the ‘Update’ button you’ll find the option ‘Catalogue visibility’, per default it’s set to ‘Hidden’ for tickets. Change this to ‘Catalog’ or ‘Catalog/Search’ to make the ticket visible in your Store.
Please let me know if you need help with anything else,
Best,
NicoSeptember 5, 2015 at 6:47 am #1002377gcaottawaParticipantNico,
You are the best. Thank you so much for your assistance!
September 7, 2015 at 5:34 am #1002579NicoMemberHey gcaottawa,
Thanks ๐ Glad I could help you!
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 of luck with your project,
Nico -
AuthorPosts
- The topic ‘hide ticket sales’ is closed to new replies.