Hi Mothershiparts,
Yes, It’s possible to disable current day booking.
Here is small tweak to do this:
File: appointment-calendar-shortcode.php
Find Code:
$startCalendarFrom = date("Y-m-d", strtotime("-1 day", strtotime($curr_date)));
Comment out found code line and update next line code by assigning date function array(date("Y-m-d") and add a new line after this as below:
//$startCalendarFrom = date("Y-m-d", strtotime("-1 day", strtotime($curr_date)));
$myCalendar->dateAllow(date("Y-m-d"), "2035-01-01", false);
$myCalendar->setSpecificDate(array(date("Y-m-d")), 0, '');
Update 2 more things in same file as below:
[1] Set date’s field value to tomorrow date
<input name="appdate" id="appdate" type="text" readonly="" height="30px;" style="height:30px;" value="<?php echo date('d-m-Y', strtotime('+1 day', strtotime(date('Y-m-d')))); ?>" />
[2] Commet out 2 code line
//show frist modal
jQuery('#addappointment').click(function(){
//var todaydate = jQuery.fullCalendar.formatDate(new Date(),'dd-MM-yyyy');
//jQuery('#appdate').val(todaydate);
jQuery('#AppFirstModal').show();
});
You Done.
Thanks
Frank