• Resolved dieSuse

    (@diesuse)


    Hi all,

    I’m using the free version of Events Manager and have a strange behavior regarding a booking. So, the booking came in, but a ticket had to be changed to another one. So I tried to do that, pressed ‘Send change’ (or similar, since I’m using it in German). The input fields went away and the data was, as I wanted. But if I call the booking again or refresh the page, the change is gone and the all ticket is there listed again.

    Since this did not work, I deleted the booking and made a new one from the backend with the correct ticket. Now, some other data shall be changed (just a tipo in the name), but that did not work neigther. Same behavior as above.
    So I chose the same workaround, deleted the booking and wanted to do a new one, but now, it is saying, that the E-Mail address is already in the system and that I have to log in.

    The deleted bookings can still be reached via direct link using the booking ids. But how can I completely delete them? They are listed nowhere in the backed.
    And, I cannot change anything anymore. If I try, I always get an error, that a data (here the age of the customer) is missing but it is not, since it is listed in the booking page. And if it would, I wouldn’t be able to change it, since the button ‘edit details’ (or similar, since I’m using it in German) beneath the personal data is missing.

    screenshot

    Can anybody (if read until here, thanks!) help with with this dilemma?
    How can I completely delete the two bookings (I know the booking ids), so that I can use the E-Mail-Address for a new clean booking of that person?

    Thanks for any help!!!

    Suse

Viewing 11 replies - 1 through 11 (of 11 total)
  • caimin_nwl

    (@caimin_nwl)

    Hi Suse

    Are you using No-User Booking Mode?

    Thread Starter dieSuse

    (@diesuse)

    Hi,

    and thanks für the reply. Yes, the No-User Booking Mode is used. Is it not possible then to do a booking from the backend? Seems that my user account is used then.

    I have to say, that I just took over the website and I think it I really have to clean it up. Some of the problems described above could be solved, but I have already one really annoying: If I want to change a thing of the booking options or the ticket or anything in the backend, I always get an error that some personal data (her the age of the customer) is missing. But it is not. It is listed correctly. So I cannot change any data, what is really not working for me. Is there any idea, what caused this behavior?

    Thanks a lot,
    Suse

    Is the age set as as required field on your form?

    Thread Starter dieSuse

    (@diesuse)

    Yes it is! But it is existing in the backend. Nothing is missing. And it is part of the personal data and not the booking details. If I click to change data, it is part of another formular an not getting an input field. However, there is the error, that the age is missing.

    Any ideas?

    If you add the code snippet below to the functions.php file of your theme it should stop the error message in admin.

    /**
     * Function allows admins to modify user fields, without having to pass validation on
     * all Events Manager Form Editor required fields.
     */
    function emp_form_validate_field_ignore_required_fields( $result, $field, $value, $EM_Form ) {
    
    	// Only hack with this if on admin user-edit profile screen
    	if( function_exists( 'get_current_screen' ) ) {
    		$screen = get_current_screen();
    		if( $screen->base == 'user-edit' ) {
    
    			// Did the field fail validation and is it required?
    			if( !$result && $field['required'] ) {
    
    				// Remove the validation error
    				array_pop( $EM_Form->errors );
    
    				// Set required from this field to false
     				$EM_Form->form_fields[ $field['fieldid'] ]['required'] = false;
    
    				// re-run validation
    				$result = $EM_Form->validate_field( $field['fieldid'], $value );
    			}
    		}
    	}
        return $result;
    }
    add_filter('emp_form_validate_field', 'emp_form_validate_field_ignore_required_fields', 4, 10);
    Thread Starter dieSuse

    (@diesuse)

    Hi caimin_nwl,

    and thanks a lot for your reply. Unfortunately it did not work. The error is still there as before.

    Thank you anyway,
    Suse

    Which version of Events Manager are you using?

    Thread Starter dieSuse

    (@diesuse)

    Hi,

    I’m using EM 5.6.6.1 and EM Pro 2.3.9.

    Thanks,
    Suse

    Thread Starter dieSuse

    (@diesuse)

    Hi again,

    I’ve updatet to Pro an hour ago, for another reason by the way, but the error is still existing with Pro version 2.4.4.2.

    Regards,
    Sise

    If you’re a Pro customer, please post this in the Pro forum. Thanks.

    Hi,

    I am also getting same message in front end checkout:

    jQuery111307822266973622712_1503463335740({“result”:false,”message”:”Booking deleted”
    ,”errors”:”<p>You cannot manage this Booking.<\/p>”,”checkout”:true,”gateway”:”offline”})

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Edit Booking Error’ is closed to new replies.