• Resolved Olaf Lederer

    (@finalwebsites)


    I have two types of members (basic and premium). Some events are only available to premium members and others are available to any membership type. Can I create my own conditional placeholders for these?
    Or are there other ways to hide the booking form of a premium event when a basic member is logged in?
    My members can see everything but are not allowed to participate in certain events if they do not have the correct membership.

Viewing 4 replies - 1 through 4 (of 4 total)
  • joneiseman

    (@joneiseman)

    Yes, you can make a conditional placeholder to only display the booking form to premium members. You could create a category for the premium events then when implementing the conditional placeholder you would return false if it’s a premium event and the user is not a premium member. You would add the conditional placeholder in the single event format page.

    To modify the single event page format go to Events > Settings then in the Formatting tab enable Super Advanced mode then go to the Events section where you can modify the single event page format to disable the booking form when the conditional placeholder returns false.

    Here’s documentation on creating a custom conditional placeholder: https://wp-events-plugin.com/documentation/tutorials/creating-conditional-placeholders-for-events/

    Are. you using a membership plugin for assigning users a premium membership?

    Thread Starter Olaf Lederer

    (@finalwebsites)

    Hi Jon,
    Thanks for your reply and the link. I checked the plugin docs so often and never found this article.
    I guess I need to check all the walk throughs πŸ™‚

    Are. you using a membership plugin for assigning users a premium membership?

    I’m using WooCommerce subscriptions for the payments and based on purchased subscription, I add a special role to the buyer. Based on this rol I decide what he can do an what not. Most membership plugins are bloated with functions I don’t need.

    Plugin Author Marcus

    (@msykes)

    One thing to note that may help, you can limit tickets themselves (and therefore the booking form itself) to specific user roles. Most membership plugins sync roles with member levels, so you can do that by when editing a ticket/event.

    Click on advanced settings for the ticket, and you’ll see a dropdown to limit users, choose registered users and there you’ll see a list of checkboxes to select your roles to limit to. The form will show as closed to other users if that’s the only ticket available.

    Alternatively, you can also use tags to tag your member-only events, and then use our built-in conditional tag placeholders instead, no code needed πŸ™‚

    I’m going to mark this resolved, feel free to re-open and follow-up if needed.

    Thread Starter Olaf Lederer

    (@finalwebsites)

    Thanks Marcus,
    In the meantime I remembered me the different roles from advanced settings and this works very well.

    Except for the message, at the moment that a basic member visits a premium event page, they see the same message as they see if bookings are closed.
    I will try also the tag-conditions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.