Support » Plugin: Events Manager » Default bookings = yes, not checked in event submit form

  • Hi,

    I am using the free version and am trying to show the bookings fields automatically in the Add new event page.

    I have “Yes” in general settings Allow bookings, but the form here, section “Allow registration for this event” is unticked, hence the ticket fields are not showing. http://jedloinak.sk/pridat-jedlo-udalost/?action=edit

    The events for my use case ALWAYS want to have registration on, so I’m looking for an option to enable this for all new event submissions?

    I also tried editing the bookings.php template as per: http://wp-events-plugin.com/documentation/using-template-files/, created a new folder: /web/wp-content/themes/ascend_premium/plugins/events-manager/templates/bookings.php, but it is ignored by the plugin.

    I also tried recreating all the subfolders, no luck:
    /web/wp-content/themes/ascend_premium/plugins/events-manager/templates/forms/event/bookings.php

    In the original file: /web/wp-content/plugins/events-manager/templates/forms/event/bookings.php

    I can edit the default display:none; to display:block:, but that won’t stick after update:
    <div id="event-rsvp-options" style="<?php echo ($EM_Event->event_rsvp) ? '':'display:block;' ?>">

    and the checked flag doesn’t seem to work here:

    <input id="event-rsvp" name='event_rsvp' value='1' type='checkbox' <?php echo ($EM_Event->event_rsvp) ? 'checked="checked"' : ''; ?> />

    Does the template folder system not work for the free version? Or can I change the display: property somehow using a custom function?

    If I buy the PRO version, will it work?

    Separate question about PRO – the features say that I can customise the form by adding fields. Can I also hide fields?

    thanks,
    Lukas

    • This topic was modified 3 years, 4 months ago by lukascech.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support caimin_nwl

    (@caimin_nwl)

    Hi Lukas,

    The template system works for both versions of the plugin.

    Are you trying customize the add event page in admin or the event submission form on the front-end site?

    The Pro Forms Editor lets you add or remove form fields for all aspects of the booking and registration forms.

    Hi Caimin,

    I am trying to customize the add event submission form on the front-end site. Am I correct in editing bookings.php in /plugins/events-manager/templates/forms/event/?

    I only need a small change, so will see if editing the template will suffice, if not, I’ll go for the PRO version.

    Thanks,
    Lukas

    Plugin Support angelo_nwl

    (@angelo_nwl)

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/forms/event-editor.php

    thanks Angelo – your path is missing one folder /templates/, check the documentation again – I am using the correct path (checked it so many times) and nothing happens (in my bookings.php under that path, I changed the code, but it’s not picked up).

    tried these:

    /web/wp-content/themes/ascend_premium/plugins/events-manager/templates/bookings.php, but it is ignored by the plugin.

    I also tried recreating all the subfolders, no luck:
    /web/wp-content/themes/ascend_premium/plugins/events-manager/templates/forms/event/bookings.php

    Or is the documentation incorrect and I should NOT use the /templates/ folder?

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Your last path should work. Are you using a child theme?

    What changes are you making to test the path is working?

    My path is: /web/wp-content/themes/ascend_premium/plugins/events-manager/templates/forms/event/bookings.php

    I have removed the first code:

    <div id="event-rsvp-box">
    	<input id="event-rsvp" name='event_rsvp' value='1' type='checkbox' <?php echo ($EM_Event->event_rsvp) ? 'checked="checked"' : ''; ?> />
    	&nbsp;&nbsp;
    	<?php _e ( 'Enable registration for this event', 'events-manager')?>
    </div>

    and changed “none” to “block” here:
    <div id="event-rsvp-options" style="<?php echo ($EM_Event->event_rsvp) ? '':'display:none;' ?>">

    but the changes weren’t picked up. If I make the same changes in original bookings.php (in the plugin folder), it works.

    Although this has now resolved itself via another route – I changed the setting to allow only 1 ticket per event, so now by default the fields I want to show are shown.

    Therefore this isn’t a blocking issue now, I guess we can leave it if it doesn’t cause problems for anyone else.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default bookings = yes, not checked in event submit form’ is closed to new replies.