Events Made Easy Forums Generic cannot make booking !!!

  • This topic has 10 replies, 2 voices, and was last updated 7 years ago by Anonymous.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #56866
    Anonymous
    Inactive

    Hello,
    after Update to Version 2.0.0 i have big problem.
    I check, if i can make a booking to my own seminar.. When i click an booking-Button then it will do nothing… the button is going to circle an then i can wait hours, but no bocking or something else… It´s no different if i use discount-code or not…
    I don´t know if you have to know, that after the update i have to reactivate the captcha in eme…

    Thanks for helping…

    #56867
    Anonymous
    Inactive

    Know i have more infomations.
    When i make a booking the button is going to circle and no emails or anything would be send, but the booking is in the system… So one person had registert 4 times for one event… my event will be going full, but no emails or anything.. (no email for me and no for the bocked person)…

    now i will search for the problem by emails… or do you have any other idea?

    #56868
    Anonymous
    Inactive

    Testemail will be send without problems,
    email from system (when i cancel the booking) will be send without problems…

    only when a person make a booking (submit) no emails be sendet…

    #56873
    Franky
    Keymaster

    If the wheel keeps spinning, check your browser console for hints. It means it got back an unexpected answer, meaning an error/warning/ …

    #56876
    Anonymous
    Inactive

    jquery.js?ver=1.12.4:4 POST http://www.hypnoseerlernen.de/events/36/hypnoseseminar-kombipaket-grundkursaufbaukurs-25-11-2017-26-11-2017/ 500 (Internal Server Error)

    this problem exists after update to version 2.0.0 …
    bookings are no problem with old version…

    #56877
    Franky
    Keymaster

    internal server error: please check your webserver logs for errors.

    #56878
    Anonymous
    Inactive

    NOW i have find out the reason..

    i have discount-Code in function.php ==>

    /**
    * Add a hook for the Events Made Easy system to allow for coupon codes
    */
    add_action(’eme_insert_rsvp_action’, ‘my_eme_discount_function’,20,1);
    function my_eme_discount_function($booking) {
    //print_r($booking);
    $answers=eme_get_answers($booking[‘booking_id’]);
    //print_r($answers);
    // now calculate your stuff based on the booking and answers arrays
    // and return the discount. A starting example:
    foreach ($answers as $answer) {
    if ($answer[‘field_name’] == “RABATTCODE”) {
    $coupon = $answer[‘answer’];
    }
    }
    // now check $coupon for your wanted value and do the discount ($booking has all the booking info)
    return $calculated_discount;

    }
    ——————-
    With this code the old version had no problems.. the new version has a problem with this code..

    when i remove the code all emails are send…

    #56879
    Franky
    Keymaster

    That function can’t work. You don’t assign anything to $calculated_discount …
    That probably triggers a PHP warning, preventing the mail to be send.

    #56880
    Anonymous
    Inactive

    which code i need?
    i have only discounts wich discount a seat.. (typ4)

    *sorry* i cannot programing php 😉

    #56881
    Franky
    Keymaster

    You don’t need that code for per-seat discounts. So just remove it.

    #56882
    Anonymous
    Inactive

    Cool !!
    I checked that now, and thank you, thank you, thank you…

    ALL works 😉

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top