August 28, 2013 at 10:56 /
That’s not easily possible. I can give you a code to fake a reservation and check the availability, but you’ll need to build that into the /lib/widgets/form_widget.php file.
1 2 3 4 5 6 7 8 9 |
easyreservations_load_resources(); global $the_rooms_array; foreach($the_rooms_array as $resource){ $res = new Reservation(false, array('name' => '', 'email' => '', 'arrival' => time(),'departure' => time()+86400,'resource' => $resource->ID, 'country' => '', 'adults' => 1,'childs' => 0,'reservated' => time())); $availability = $res->checkAvailability(2); if($availability){ //This resource is unavailable } } |
Regards