Help Desk

Hide Inventory Stock

  • Posts: 10 Topics: 10
    | Permalink

    I’m trying to hide the inventory stock available from the public. No matter what I do I cannot get the remaining tickets available to be hidden from the events page. I’d like to continue managing stock because I only want to sell so many tickets, but I don’t want to show that 38 seats are remaining. Maybe if there were 5 seats left, but not more. I’ve even set the Woocommerce setting to never display stock.

    Posts: 4375
    | Permalink

    Hi Sarah,

    I’m sorry you’re having such a hard time hiding the ticket stock…can you try adding the following to the functions.php file of your child theme?

    add_filter( 'tribe_tickets_buy_button', '__return_empty_string' );

    Let me know if that helps!

    Thanks,

    Jennifer

    Posts: 10 Topics: 10
    | Permalink

    Thanks Jennifer! That line of code worked for me in my child theme.

    Posts: 4375
    | Permalink

    Perfect! If there’s anything else I can help with, please let me know : )

    Posts: 7
    | Permalink

    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

    | Permalink

The topic ‘Hide Inventory Stock’ is closed to new replies.