Have tickets be auto visible

Home Forums Ticket Products Event Tickets Plus Have tickets be auto visible

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1262739
    Weatherly Boehmer
    Participant

    Right now when we create an event with ticket it creates it in woocommerce but sets it to ‘hidden’. We want to avoid this extra step and have it default to visible, we need it set to ‘catalog’. Can you advise how we might adapt the plugin to do this?

    #1263426
    Victor
    Member

    Hi Weatherly!

    Thanks for reaching out to us! 🙂

    Setting the Woocommerce product to “hidden” is a default behaviour of Event Tickets Plus.

    While our “Terms of Service” doesn’t allow us to do customizations, we do like helping out and at least point users into the right direction. That said, let me try to help you with this.

    You should check line 758 of the file Main.php located in wp-content/plugins/events-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php where the following code sets the product visibility to “hidden” > update_post_meta( $ticket->ID, '_visibility', 'hidden' );

    You may try to make a customization using one of the action hooks provided after line 874.

    I hope that helps. Let me know if any other questions

    Best!

    Victor

    #1274148
    Support Droid
    Keymaster

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Have tickets be auto visible’ is closed to new replies.