Events Made Easy Forums How do I … Booking form in a lightbox?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #58024
    Anonymous
    Inactive

    I try to realize a booking form in a lightbox (Easy FancyBox). The customized booking form works fine on an event page, but not in the lightbox.

    Here is the code for calling the booking form in the Fancybox:

    <div class="fancybox-hidden" style="display: none;">
    <div id="fancyboxID-#URL_EVENTID" class="hentry" style="width: 460px; max-width: 100%;">[eme_add_booking_form id=#_EVENTID]</div></div>
    <a class="fancybox-inline" href="#fancyboxID-#URL_EVENTID">#_STARTDATE{H:i} - #_ENDDATE{H:i}</a>

    And here is the simple customized booking form:

    Nachname*:
    #_LASTNAME
    Vorname:
    #_FIRSTNAME
    E-Mail-Adresse*:
    #_EMAIL
    Telefonnummer:
    #_PHONE
    
    #_SEATS
    #_SUBMIT{Anmelden}

    Any hints how to make the booking form working in the FancyBox or any other lightbox?

    #58025
    Franky
    Keymaster

    Maybe because the form is generated via a shortcode in your case? Why not just use #_ADDBOOKINGFORM and not “[eme_add_booking_form id=#_EVENTID]” ? I won’t try it here though 🙂

    #58026
    Anonymous
    Inactive

    Hi Franky,

    same behaviour when using #_ADDBOOKINGFORM. When clicking “SUBMIT” the lightbox closes but the booking is not registered.

    Any further idea?

    #58027
    Franky
    Keymaster

    the submit happens via an ajax call. I guess the lightbox needs to be made aware of that, maybe it intercepts that call …

    #58031
    Anonymous
    Inactive

    Meanwhile I found out that the booking form in a lightbox works fine when there is only one link to a booking per page.

    The problem obviously appears when I have two or more links to the bookings of different events. In that case eme seems to create problems. E.g. it requests to fill in mandatory fields, which are filled in already.

    So I have to find a less elegant way for booking.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top