Event categories VS Product categories

Home Forums Welcome! Pre-Sales Questions Event categories VS Product categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1145473
    Bram Huisman
    Guest

    Hi there,

    What we are aiming for is some kind of “membership” website. Only registert and accepted members can attend an event. So the ideal situation for us is that every visitor can VIEW all events, but can’t buy tickets.. there for they need to register and be assigned to a specific role using the ultimate members plugin in combination with woocommerce. I know there is a plugin at woocommerce named: https://docs.woocommerce.com/document/catalog-visibility-options/ with this plugin we can block people from adding to the cart with the use of product categories. But the events calendar uses event categories.. Do you guys know if this is possible to hook or so?

    An other option is not displaying the ticket section when a user is not logged in as a specific user.. is this possible?

    #1145512
    Geoff
    Member

    Hi Bram,

    That sounds like a cool site!

    Yes, this is totally possible with Event Tickets Plus. When creating a ticket, it will automatically be categorized as “Ticket” product in WooCommerce and all tickets are automatically already hidden from product catalog view.

    What you would need to do is make sure that the ticket form on events is only displayed to members of the site and to do that, you can modify the template for it by wrapping it in a conditional statement that checks for a visitor’s logged in status like this:

    <?php
    if ( is_user_logged_in() ) {
    // ticket form code
    } else {
    echo 'Please log in to purchase tickets.';
    }
    ?>

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

    Cheers!
    Geoff

    #1146002
    Bram Huisman
    Guest

    Really thx, this is great!

    #1146072
    Geoff
    Member

    My pleasure! Thanks again for reaching out and I hope the plugins are a great fit for your project. 🙂

    Have a great day!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event categories VS Product categories’ is closed to new replies.