We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5119ef5 commit 9f0ad71Copy full SHA for 9f0ad71
1 file changed
step1.php
@@ -66,10 +66,17 @@
66
<?php
67
$date_type = $booking_criteria->date_selection->date_type;
68
if($date_type == "DATE_NIGHTS" || $date_type == "DATE_DAYS"):
69
- $min_hdur = 7;
70
- $max_hdur = 21;
+ $min_hdur = $booking_criteria->date_selection->duration_minimum;
+ $max_hdur = $booking_criteria->date_selection->duration_maximum;
71
$def_hdur = (int)$result->tour->duration;
72
+
73
+ if($min_hdur == $max_hdur):
74
?>
75
+ <input type="text" name="hdur" value="3" readonly="true" />
76
+ <?
77
+ else :
78
+ ?>
79
80
<select name="hdur">
81
82
for($i=$min_hdur; $i<=$max_hdur; $i++):
@@ -82,6 +89,8 @@
89
83
90
</select>
84
91
<?
92
+ endif;
93
85
94
endif;
86
95
87
96
0 commit comments