Reply To: Get Prices of given dates

No, you need something like this:

Select Code
1
2
$res = new Reservation(false, array('email' => 'mail@test.com', 'arrival' => $a_timestamp, 'departure' =>  $d_timestamp, 'resource' => (int) $_POST['room'], 'adults' => $pers, 'childs' => $child,'reservated' => time()), false);
$price = $res->Calculate();

Regards