August 9, 2013
at 15:26 /
#8442
Hello:
Thanks in advance for your help.
In my case I want to bring my client the option to show price provided for 2 people / per day.
That’s no problem in the form and in the search avaliability pages. You have made this option to configure. with very good reason.
But my problem is when I want to show the price in calendars. The price shown on the calendar for 1 person / 1 nigt.
I would like to know how I can change this option to show the price for 2 persons-
Please take a look here http://awesomescreenshot.com/06c1law0a7
Thanks for your help.
Best regards
Pedro
August 11, 2013
at 19:59 /
#8454
Open lib/functions/both.php (or admin.php if you use the beta) and search for “easyreservations_send_calendar_callback” and in it “new Reservation”. In that array you can find the key adults and set it’s value to 2.
Regards
August 11, 2013
at 19:59 /
#8455
Open lib/functions/both.php (or admin.php if you use the beta) and search for “easyreservations_send_calendar_callback” and in it “new Reservation”. In that array you can find the key adults and set it’s value to 2.
Regards
March 13, 2014
at 17:26 /
#10492
Hello I can’t find
“easyreservations_send_calendar_callback” to change this again.
Could you help me again?
Thanks
March 14, 2014
at 14:45 /
#10497
lib/functions/ajax.php
Regards
June 6, 2014
at 17:19 /
#11350
Hello.
I do not find how to change the calendar again to show the price for 2 people (adults) by default.
In this new version have changed the location of that line.
could you tells exactly the file, line and value that I must to change to show the prices for 2 adults in calendars?
thanks
regards
June 10, 2014
at 13:49 /
#11360
/lib/functions/ajax.php line 126 in the latest beta.
Regards
June 13, 2014
at 11:53 /
#11381
Hello, this line 126:
$res = new Reservation(false, array('email' => 'mail@test.com', 'arrival' => $dateofeachday+43200, 'departure' => $dateofeachday, 'resource' => (int) $_POST['room'], 'adults' => $pers, 'childs' => $child,'reservated' => time()-($resev*86400)), false);
But I found this lines in the same file:
233 if(isset($_POST['persons'])) $persons=$_POST['persons'];
234 else $persons = 1;
509 if(!empty($_POST['persons'])) $persons = $_POST['persons'];
510 else $persons = 1;
I’d appreciate it if you wrote me the correct line of code. I don’t want the change could affect affect the proper calculation of the price.
Regards
Pedro
June 16, 2014
at 11:18 /
#11394
It’s 126 as I said. Change the value of adults.
Regards
June 16, 2014
at 12:01 /
#11399
Like this?
$res = new Reservation(false, array('email' => 'mail@test.com', 'arrival' => $dateofeachday+43200, 'departure' => $dateofeachday, 'resource' => (int) $_POST['room'], 'adults' => 2, 'childs' => $child,'reservated' => time()-($resev*86400)), false);
June 17, 2014
at 15:49 /
#11431
Thanks.
The problem with that solution you suggest is that It changes all the calendars, including Resource price settings area where you test if the rates are correct becaouse neve can see the price for 1 adult.
Not a good idea to add a parameter en calendar easy code like the form, to establish the number of adults?
Right now when you add a calendar and a form on the same page, the picker calendar days also affects the day selector form and vice versa.
is it not possible that when you change the number of adults in web form also change the price of the rooms shown in the calendar view?
Regards
Pedro
June 18, 2014
at 11:42 /
#11441
It’s not impossible. You would have to request a new calendar every time the adults changes and send the information with it. So there’s some knowledge required.
Regards
June 18, 2014
at 18:37 /
#11449
Sorry, I have not much knowledge of web programming.
I am a graphic designer.
I think the functionality of prices change in the calendar as the number people would be good for the user does not take a surprise about the price. Maybe in the next beta?
Regards