Reply To: Fixed reservation time

Hello, I solved the problem by modifying the file easyReservations_form_shortcode.php and forcing by code “date-to-hour”:

/ / if (isset ($ _POST [‘date-to-hour’])) $ departureplus + = (int) $ _POST [‘date-to-hour’] * 60;
$ departureplus + = (int) ($ _POST [‘date-from-hour’] + 1) * 60;
/ / if (isset ($ _POST [‘date-to-min’])) $ departureplus + = (int) $ _POST [‘date-to-min’];
$ departureplus + = (int) $ _POST [‘date-from-min’];

And by eliminating the validation date in reservation.class.php file:

/ / If ($ this-> departure arrival) {/ * check arrival Date * /
/ / If $ errors [] = ‘easy-to-form’ ($ this-> admin!);
/ / $ Errors [] = __ (‘The departure date has to be after the arrival date’, ‘easyReservations’);
/ / $ Daterror = true;
/ /}

I don’t think that is the best way to solve the problem but we can’t further delay the launch of the web.

Regards.