Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter havenswift-hosting

    (@havenswift-hosting)

    Is this only available with the Pro version ? Seen something that indicates this but it isnt very well documented

    If you do not allow guest bookings, only logged-in users can place a booking and only for themselves.

    It depends on your settings… The Pro version allows for many more options, but you can still restrict them as well.

    Could you explain what you mean exactly? Who would book who and how?

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    Site has just been opened and currently has five events with two ticket types on each (maximum of 20 for reserved places and maximum of 4 for standby places – not sure if this is the best way of doing this ?).

    The site owner has been manually taking bookings for these five events and most of the 20 reserved places in each have already been taken. These users have been manually created, but once they have generated a password, they are able to login and book on any event.

    We would like to manually book these users onto the events so the correct people are booked on the correct events. Of course we can adjust and delete a booking but would be nice to not have to do this

    not sure if this is the best way of doing this ?

    For now… it probably is… As a very enthusiastic EM user myself, I am creating an add-on “EM Waiting Lists”, but I’ve no ETA yet.

    Manually adding a booking is a Pro feature. That will only wok for the Offline gateway, though (without any online payments). In the Admin you can then add users to the event using a simple dropdown.

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    For now… it probably is… As a very enthusiastic EM user myself, I am creating an add-on “EM Waiting Lists”, but I’ve no ETA yet.

    User support in forums like this is brilliant so thanks for all your answers ! Sounds like an excellent add-on and will definitely be interested ! In the meantime, I will add some text saying to only book a reserved space or if these are all taken, then only a standby place.

    For this to work better, I would like to show the number of places and the maximum number of place of each type of ticket already booked – sure this is possible but havent found a way of adding it

    Manually adding a booking is a Pro feature.

    Thanks, I will look to buy the Pro version

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    I have adjusted the events page format, which is found in Events > Settings > Formats/Layouts > Events Format

    So what I need to do is adjust what is shown in #_BOOKINGFORM

    It depends on where you want to insert the additional text.

    Anything you put in Events > … > Single event page format will be above (or below) the booking form, depending on the #_BOOKINGFORM placeholder placement. (is that a normal sentence?? 😛 )

    You can either edit the template, or add a custom snippet to your theme’s functions.php.
    Something like:

    function em_additional_ticket_text() {
    	?><p>This is my text</p><?php
    }
    add_action('em_booking_form_before_tickets', 'em_additional_ticket_text');

    To add above the tickets list, use ’em_booking_form_before_tickets’.
    To add the text just below the tickets, use ’em_booking_form_after_tickets’.

    To add the text just above the submit button, you can use ’em_booking_form_footer’.

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    I was hoping to add this inline within the #_BOOKINGFORM placeholder output

    So currently

    Ticket Type Spaces

    Reserved places 1

    Standby places 1

    Would ideally like to display this on the same line for each ticket type and so would end up with something like this

    Ticket Type Bookings Spaces

    Reserved places 15/20 1

    Standby places 0/4 1

    That is new question… but okay 😉

    You need to edit the template file for that.
    First copy:
    wp-content/plugins/events-manager/templates/forms/bookingform/tickets-list.php

    to:
    wp-content/themes/your-theme/plugins/events-manager/forms/bookingform/tickets-list.php

    Then edit the copied file to your liking.

    Copying the template file to your theme folder will keep is safe when EM updates. If you have a theme that get updated as well, you should really use a child theme.

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    I had discovered the template system and how to use that, just not sure how to modify that template to do what is needed !

    Thinking about a different way to do this : modifying the single event page format to add the number of booked tickets and the total available – the only problem is the placeholders count places for both tickets together and cant see a way of doing this on a per ticket basis ?

    Have also tried (#_BOOKEDSPACES – 4) / (#_SPACES – 4)

    4 is the number of standby places available on the second ticket but this simply prints rather than calculates – is there a way to do this ?

    Thanks

    Thread Starter havenswift-hosting

    (@havenswift-hosting)

    Going back to the original issue

    Manually adding a booking is a Pro feature. That will only wok for the Offline gateway, though (without any online payments). In the Admin you can then add users to the event using a simple dropdown.

    Been trying to buy the Pro version this afternoon but their system isnt allowing it at the moment but then came across this plugin : https://wordpress.org/support/plugin/login-as-user/ which allows admin users to book users onto events as if they were booking themselves – much easier than the process would be using the Pro plugin. We may still buy it for the payment side of things anyway

    What you first need to realize is that any placeholder is 100% output-ready. You cannot modify the output of a placeholder. The data is processed in the background. You need to see a placeholder much like a shortcode. You can also not do something like:
    [my_shortcode] - 4

    If you want to output custom values( such as not the actual number of spaces), you will need to create your own custom placeholder.
    https://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/

    Keep in mind though that “#_BOOKEDSPACES – 4” can result in -4 when there are no bookings yet, unless you code a fallback for that as well.

    Also, why do you want to show -4 tickets?
    Say your event has 20 spaces and you added the standby tickets, so then the technical amount is 24. Then EM will not see 20 as fully booked and will not be closing the booking form at 20.

    much easier than the process would be using the Pro plugin.

    Rather a strong statement if you have not even seen how the Pro version works…

    Best of luck.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Manually booking users onto events’ is closed to new replies.