Hi,
Currently I am very busy with the HikaMarket 1.5.0 release that I want to finish as soon as possible.
If you have some time to work on the datepicker plugin, the concept is easy : you have to check if the date is forbidden or not.
Here a "mock-up", the concept idea
if(!empty($datepicker_options['today'])) {
$timestamp = time();
if(!empty($datepicker_options['waiting']))
$timestamp += 86400 * (int)$datepicker_options['waiting'];
do {
$inc = $this->checkRules($timestamp, $datepicker_options); // New function to create
if($inc > 0)
$timestamp += 86400 * $inc;
} while($inc > 0);
if(!empty($joomlaFormat))
$txtValue = hikashop_getDate($timestamp, $joomlaFormat);
else
$txtValue = hikashop_getDate($timestamp);
}
if(empty($value) && !empty($timestamp))
$value= hikashop_getDate($timestamp, '%Y/%m/%d');
The idea is to write the code for the function checkRules in order to return the number of days that we have to skip if the current timestamp is forbidden.
If the day is forbidden, the function will return 1 ; if the value is in a date range, the function will return the number of day until the end of the date range, etc.
And I think it will require an extra check in the code in order to not use the default value when the option "default today" is set.
Because when the user save the custom field with "default today", the current day is stored in as default value, so the customer field will always set that default value and the idea of "default today" is to avoid that.
Regards,