Fix check-in date after check-out date issue

This commit is contained in:
Abhishek Kumar
2022-07-14 20:03:30 +05:30
parent af4c6d375d
commit 4e58a6fc2f
3 changed files with 78 additions and 27 deletions

View File

@@ -1038,7 +1038,7 @@ class ProductControllerCore extends FrontController
public function displayAjaxRefreshBookingForm()
{
$response = array('status' => 'ko');
$response = array('status' => false);
$idProduct = (int) Tools::getValue('id_product');
$dateFrom = Tools::getValue('date_from');
$dateTo = Tools::getValue('date_to');
@@ -1056,7 +1056,7 @@ class ProductControllerCore extends FrontController
$roomTypeDemands
)) {
$html = $this->context->smarty->fetch('_partials/booking-form.tpl');
$response['status'] = 'ok';
$response['status'] = true;
$response['html_booking_form'] = $html;
}