WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] [Feature request] Show unavailable ticket options to non-registered users (4 posts)

  1. Sebastien Couture
    Member
    Posted 1 year ago #

    Hello,

    I think a nice feature would be the option to show unavailable ticket options to non registered users. Currently, when this option is enabled, only logged-in users get the "N/A" in the booking form.

    I've come up with a temporary fix for this by changing line 190 in em-ticket.php from :

    $condition_4 = !$this->ticket_members || ($this->ticket_members && is_user_logged_in());

    to :

    $condition_4 = true;

    However, integrating this in the plugin options would be a much appreciated feature.

    Best regards,

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    hi,

    using the latest version 5.3.5 this seems to be working fine with my test sites. Settings > Bookings > Ticket Options > Show unavailable tickets? (choose yes)

    http://wp-events-plugin.com/documentation/

  3. Sebastien Couture
    Member
    Posted 1 year ago #

    Yes I have turned that setting on.

    Are you sure you are logged out ? I strongly doubt this is the case since the function which generates the select box with the number of seats depends on that $condition_4 to be true, and its hard coded.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    the reason your ticket is probably not showing is not because it's not available, but because your ticket is for members only, i.e. it will never be shown to guests

    go to edit the event and edit that ticket, see the bottom checkbox

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic