Hello,
I finally managed to solve it by myself. I modified javascript of calendar which is locatedin /includes/js/calendar/calendar.js On this calendar all past days are disabled and today will be disabled if time is over 15:00.
I replaced code on line 37 this.getDateStatus = null;
with this one this.getDateStatus = getDateState;
And I inserted the code to the begining of the file:
Code:
/** The Calendar object constructor. */
function getDateState(date)
{
var currentDate = new Date();
if( date.getDate() == currentDate.getDate() && date.getMonth() == currentDate.getMonth() && date.getFullYear() == currentDate.getFullYear() )
if(currentDate.getHours() >= 15)
return true;
else return false;
if( date.getTime() < currentDate.getTime() )
return true;
else return false;
}
I hope someone will find it usefull for his Virtuemart with Joomla or other cases