Somewhere in the forum you told that it can be achieved by adding no. of nights to the starting date.
Bt hw to add no. of nights to a date dont knw.. ;(
hmmm... date+num nights?
Of course you need to take into account the end of the month and year.
This is pretty basic php date stuff, just google somethinge like "php add days to given date" - that gave me over 5million results, the second one of which was this:
http://www.vision.to/how-to-add-days-we ... -date-.php which pretty much sums it up with the following code snippet:
- Code: Select all
$date = date("Y-m-d");// current date
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 day");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +2 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 month");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +30 days");
Actually i am able to add no. of days to current date ...by using strtotime() function ..bt hw to add if i use some future date in place of current date..??
The actual start date is irrelevant, just pass the date correctly formatted.
That link doesn't work for me but the problem here is not the popup window (pretty basic javascript stuff) but getting the prices for the dates. You would have to extend the availability calendar to be able to store prices for every date, for date periods or for weekdays (according to your specific needs)
This goes well beyond the scope of this script which is simply designed to show availability.
A may one day provide a (paid) extension to do this but it is not an immediate priority I'm afraid.
Chris