Magento – How to change Magento’s default date in calendar

datemagento-1.8product

My requirement is when I click on the frames of the calendar popup the text-box is filled up with the current date.

How I disable this. I want the date to be selected only when clicking respective dates and not the other parts.

Best Answer

There is a setting for the calendar. It is called hiliteToday.
If you change in js/calendar/calendar.js:

this.hiliteToday = true;

to

this.hiliteToday = false;

'today' will not be selected by default.
Of course it is not ok to edit the code files, but I don't know yet how you can change that setting without touching the core. There is always the option of cloning the file, modify the cloned file and include your cloned file in the design, but I'm sure there is a cleaner way.
I will post when I find one.
This should be enough to get you started.

Related Topic