Unable to get item price for date range
in Developers
Hi,
I am trying to show items to visitors by choosing pre defined date range.
$start_date = date("d-m-Y");
$end_date = date("d-m-Y", strtotime("$start_date + 4 day") );
$accommodations = $checkfront->get('item', array( "start_date" => $start_date, "end_date" => $end_date, "date" => $start_date, "item_id" => 6 ) );
The request become like:
[request] => Array
I am trying to show items to visitors by choosing pre defined date range.
Here is php code example:
$end_date = date("d-m-Y", strtotime("$start_date + 4 day") );
$accommodations = $checkfront->get('item', array( "start_date" => $start_date, "end_date" => $end_date, "date" => $start_date, "item_id" => 6 ) );
The request become like:
[request] => Array
( [start_date] => 07-11-2017 [end_date] => 10-11-2017The response become like :
[summary] => Array ( [title] => Request Booking [details] => Per Adult Sharing: 2 @ $60.00 (CR-XX) [price] => Array ( [total] => $120.00 [title] => $60.00
Example End
So the pricing is for 1 day only. It should show pricing for 4 days. So am I doing anything wrong?
Can you please guide. If you need any more details then let me know.
Thanks
Comments
Can you please guide on above.
Thanks.
Thank you for reaching out on our forum!
To fully answer your question, I will need to take a look at your Checkfront account. I see that you have reached out to us via email, so I will respond to you there with account specific questions.
Best Regards,
Brett - Checkfront Support
Our developer has tried to reach out for support on the forums on our behalf. I have now emailed you from our registered email account for any security validation you require.
The issue we have is Checkfront has the limitation of creating pre-defined individual packages from multiple items as one i.e. hotel 1 x 4 nights, hotel 2 x 3 nights, tour activity, transfer, flights and then calculate all and display a single price display based on a specific start date
The developer is trying to solve this issue for us using our API access and creating a custom code calculation to solve this issue.
Kindly assist him and let me know via email is you have any questions.
Thanks
AMS