Tickets limit, default pending tickets and bulk edit

WordPress Event Management, Calendars & Registration Forums Pre Sales Questions Tickets limit, default pending tickets and bulk edit

This topic contains 5 replies, has 3 voices, and was last updated by  Stephen Harris 3 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13646 Reply

    Dear EO team,

    we’re trying to implement a course booking system for a school and consider to buy Event Organiser.
    Unfortunately we haven’t seen any information about 3 features we desire and wonder if you could give a prospect if those features are added soon or if they can be implemented by some custom coding.

    • Students should be able to enroll to a course only once. Is there a way to offer multiple spaces in an event but limit the ticket order to one?
    • The free tickets should stay in a “pending” state until the event manager approves the bookings. So we need the option to disable auto-approve. The student should get a mail that he/she is registered in a pending state and then another mail when approved by the manager.
    • There are like 40 courses that start over every term. However, the registration period is the same for all events. Editing the ticket registration period for all 40 courses step by step is quite a pain. Is there a way to bulk edit those settings for multiple events?

    Thanks,
    Niklas

    Niklas
    #13653 Reply

    Hi Niklas,

    By default the user can select a quantity. It is possible however to restrict ticket quantities to 1. These involves using the templates to change the number input to a checkbox or radiobox (as required), and a few lines of code* which you can use to double check a booking contains only one ticket (see the second part of this tutorial). If you have any questions regarding this or its implementation, I’d be happy to help.

    Free tickets are by default automatically confirmed. It is possible, however to disable this. There is no UI option, but a few lines of code allows you to implement this*. (Again I’d be able to assist with this).

    If you wish to repeat or re-run a course this would involve creating a new event. There are plug-ins which allow you to duplicate posts, pages etc. (including events). However you would still need to amend the dates of the event to reflect those of the new course.

    * All “third-party” code that modifies the behaviour of the plug-in can and should be kept outside the plug-in. Ideally this would be in a utility plug-in you create, but it shall also work in the theme’s (or chlid theme’s) functions.php. The point is by, keeping it outside of the plug-in you are able to update it without loosing your changes.

    Stephen Harris
    #17093 Reply

    Free tickets are by default automatically confirmed. It is possible,
    however to disable this. There is no UI option, but a few lines of
    code allows you to implement this*. (Again Iā€™d be able to assist with
    this).

    Stephen,

    I was just wondering whether you could assist us with this. We need to have free tickets automatically defaulted to pending.

    Thanks!

    Scott
    #17095 Reply

    Hi Scott:

    function my_set_free_events_to_pending( $booking_id ){
    
        $total_price = eo_get_booking_meta( $booking_id, 'booking_amount' );
    
        if ( 0 == $total_price ) {
    
            //Redirect to "booking complete page":
            $redirect_id = (int) eventorganiser_pro_get_option( 'booking_redirect' );
            $redirect = get_permalink( $redirect_id );
    
            wp_redirect( esc_url_raw( $redirect ) );
            exit();
        }
    
    }
    add_action( 'eventorganiser_pre_gateway_booking', 'my_set_free_events_to_pending' );
    

    This should (ideally) be added in a utility plug-in.

    Stephen Harris
    #40307 Reply

    Hi Stephen,

    I tried this and it doesn’t work. I assume, it is because of the age of this post šŸ˜‰
    Our pro Version is 3.2.0 / Basis Version is 3.10.7
    Can you pls. post a new Version of this funktion?
    I like to have free tickets as pending and not sending an Email.
    The Email should be sent, when the administrator changes the booking from pending to done.

    Udo Kibele
    #40353 Reply

    Hi Udo,

    It’s much simplier in v3:

    add_filter( 'eventorganiser_autoconfirm_free_bookings', '__return_false');
    

    simply add that to your theme’s functions.php or a utility plug-in.

    Stephen Harris
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Tickets limit, default pending tickets and bulk edit
Your information:




To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax


<a href="" title="" rel=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width=""> <p style=""> <span style="">