Magento产品自定义选项中的日期选择器仅提供日期。需要日期和时间

时间:2015-04-24 07:41:09

标签: php magento datepicker

我为我的产品添加custom optionInput type的{​​{1}} 日期&时间。

为避免产品页面中的下拉列表和显示日期选择器,我更改了:

custom option

中的

Use JavaScript Calendar to "yes"

System > Configuration > Catalog > Catalog > Date&Time Custom Options >没有时间。 datepicker gives date only仍会显示选择时间的下拉框。我想避免这个下拉列表。

有没有办法给datepicker提供日期和时间。

enter image description here

Magento版本1.9.0.1

1 个答案:

答案 0 :(得分:0)

input type的{​​{1}}设置为custom option。 并在 app / code / core / Mage / Core / Block / Html / Date.php 文件中更改代码如下

Date

现在我们可以从日期选择器中选择日期和时间,并且可以避免下拉时间。