Events Made Easy › Forums › Generic › cannot make booking !!!
- This topic has 10 replies, 2 voices, and was last updated 7 years ago by Anonymous.
-
AuthorPosts
-
Sun 5 Nov 2017 at 21:39 #56866AnonymousInactive
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…
Sun 5 Nov 2017 at 21:56 #56867AnonymousInactiveKnow 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?
Sun 5 Nov 2017 at 22:01 #56868AnonymousInactiveTestemail 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…
Sun 5 Nov 2017 at 23:19 #56873FrankyKeymasterIf the wheel keeps spinning, check your browser console for hints. It means it got back an unexpected answer, meaning an error/warning/ …
Sun 5 Nov 2017 at 23:46 #56876AnonymousInactivejquery.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…Sun 5 Nov 2017 at 23:57 #56877FrankyKeymasterinternal server error: please check your webserver logs for errors.
Sun 5 Nov 2017 at 23:57 #56878AnonymousInactiveNOW 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…
Sun 5 Nov 2017 at 23:59 #56879FrankyKeymasterThat function can’t work. You don’t assign anything to $calculated_discount …
That probably triggers a PHP warning, preventing the mail to be send.Mon 6 Nov 2017 at 00:03 #56880AnonymousInactivewhich code i need?
i have only discounts wich discount a seat.. (typ4)*sorry* i cannot programing php 😉
Mon 6 Nov 2017 at 00:22 #56881FrankyKeymasterYou don’t need that code for per-seat discounts. So just remove it.
Mon 6 Nov 2017 at 00:47 #56882AnonymousInactiveCool !!
I checked that now, and thank you, thank you, thank you…ALL works 😉
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.