As you know Gregorian is default calendar in Magento, but in some countries like China, Japan, India, Iran and Arabian countries there are different calendars. I searched Magento backend and I didn’t find any options to select and change calendar.
I want use "Jalali" calendar, Persian original calendar. Now I need install new calendar.
If I know correctly there are 2 type calendar used in Magento.
- Zend framework PHP calendar
- Mihai Bazon Java Calendar
For first type I found that, there is an extension for
Zend_Calendar that it can convert important world calendars, such as Persian Jalali (hijri shamsi) calendar, Japanese Calendar, Hebrew Calendar, Chinese Calendar, Islamic Calendar and etc. Please see below link for more details:
My problem is that I don't know how can use this Zend calendar converter. or what files must be edited in Magento?
And for second type calendar I have an open source Persian jalali version of Mihai Bazon calendar wrote by Ali Farhadi in this link: http://farhadi.ir/works/jalalijscalendar I attached this Java calendar, if need.
I put this Java calendar in Magento and I replaced it with default Java calendar. But anything didn't change. Then I edited some files in Magento core. And I saw that when I click on calendar icon, pop up calendar didn’t appear.
Please help me to change my store default calendar to Jalali, and to other word people to have their own default calendars.
I think it will be very powerful and helpful if someone can solve this problem for Magento. Not just for Persian, yea all different calendar supported by Zend, or more.
It can be good idea for Magento team that they can use all Zend abilities in their powerful software program. It can be a drop down list in Magento installation progress in where we chose country, time zone and currency.