• Resolved kaneda34

    (@kaneda34)


    Hello,

    I would like to make the following changes to Booking when creating an event, :

    ? – 1st “Enable Registration for this event” is enabled by default

    ? – 2sd “Advanced options” is hidden by default.

    In order to simplify the creation of event.

    Is it possible to do that?

    (the first is probably in a “checkbox”, and second, I do not know…)

    Thanks a lot for your answers !!

    (translated by Google translation)

    ===============================================

    Parametrage des reservation

    Bonjour,

    j’aimerai apporter les modifications suivantes aux reservations lors de la création d’un événement :

    – “Enable registration for this event”, soit activé par défaut

    – “options avancées”, soit cachées par défaut.

    Dans le but de simplifier la création d’événement.

    est il possible de faire ?a ?

    (le premier est probablement dans une “checkbox”, et le second, je ne sais pas…)

    Merci beaucoup pour vos réponses !!

    (traduit par google traduction)

    https://www.ads-software.com/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    it’s not possible out the box at the moment. it may be possible with custom coding but unfortunately that’s not something we can help with. however, you can try template file under events-manager/templates/forms/event/bookings.php

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

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

    Thread Starter kaneda34

    (@kaneda34)

    thank you very much !!!

    I have everything I needed,

    it will give me a good exercise ??

    Voila…

    Put this in your child theme’s functions.php:

    function enable_bookings_hide_advanced_by_default_js_footer() { 
        ?>
            <script>
            jQuery(document).ready( function($){
                if (!$('#event-rsvp').is(":checked")) {
                    $("input[id='event-rsvp']").click();
                }
                $("span[class='hide-advanced']").click();
            });
            </script>
        <?php 
    } 
    add_action('wp_footer', 'enable_bookings_hide_advanced_by_default_js_footer');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setups of booking’ is closed to new replies.