How to add "date" type custom option for products and make it work?
This is an old revision of the document!
This is a common topic.
Many Magento users, like my company, have similar requirements to let customers choose date through pop-up calendar in the product view page. But Magento merely offer 2 groups of input type, “Text” and “Select”, in Catelog→Manage Products→Custom Options page by default. Is there any possibility for us to add the support for Date or Date Time input types?
The answer is absolutely “Yes, we can”. Actually, Magento do have all the necessary components such as js libraries, phtml templates and predefined classes to achieve this goal. So what you have to do is just amending limited files to enable the built-in function.
Let’s do it step by step.