How to Completely Remove the "Ticket Box" from All Event Pages

Home Forums Calendar Products Community Events How to Completely Remove the "Ticket Box" from All Event Pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1048898
    samuel
    Participant

    Hello,

    I am using Event Tickets Plus and I would like to know how I would go about completely removing the “tickets box” along with the “add to cart” section.

    I currently sell everything using woocommerce and the woocommerce “add to cart” shortcodes. I bundle these tickets with other woocommerce items and I don’t want the customers to be able to purchase the tickets through the “ticket box”.

    I need the tickets associated with the event, so that the decrement appropriately and show out of stock and so that the event calendar works properly.

    Is there a way for me to remove the “ticket box” permanently from showing up in all events?

    I’ve read the guide on how “move” the ticket box, but there is no mention of completely removing it.

    Thank you and I look forward to hearing back from your team.

    #1049999
    Geoff
    Member

    Hello @samuel,

    Sure thing! You can remove the ticket form with this snippet:

    if (class_exists('Tribe__Tickets_Plus__Commerce__WooCommerce__Main')) {
    remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form'), 5 );
    }

    Will that work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1050213
    samuel
    Participant

    Thank you Geoff. That worked like a charm.

    #1050508
    Geoff
    Member

    Excellent! I’m glad to hear that helps. 🙂

    I’ll go ahead and close this thread but do feel free to open a new one if any other question pop up–we’d be happy to help.

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to Completely Remove the "Ticket Box" from All Event Pages’ is closed to new replies.