0

Whenever I am trying to create a special price for a product and try to select the from and to dates for the same the date is not getting selected at all, I have to enter it manually every time. How can I correct this?

5
  • inspect the datepicker try to find problem may be missing/confict calender.js file. – lalit mohan Oct 18 '16 at 6:49
  • Try a different browser... – Badger Oct 18 '16 at 7:25
  • any js (javascript) error? – Robin Oct 18 '16 at 12:11
  • @Badger Tried in different browser but the date picker is not still working. – Akshay Vasu Oct 19 '16 at 4:59
  • @Anja Tried inspecting the element and also reloaded the page to check whether I will get any js error in browser console but didn't get any. – Akshay Vasu Oct 19 '16 at 5:00
0

So date fields are added using Varien_Data_Form_Element_Date. What you could do would be to look into this file and check the function getElementHtml

I did in c.e 1.8.1 and found that the z-index was empty. I'm assuming it's being attached to the dom wrong, as it's using some khtml browser speciality code. Anyways, I got it working again by adding

cal.element.style.zIndex = 99999;

in calendar-setup.js

8
  • Tried to find the problem in it but could not. I even replaced the file content with the content of a Magento store where the date picker is working properly but it did not make any difference. – Akshay Vasu Oct 19 '16 at 4:58
  • ok try this.. rply if it's work or not. ? – lalit mohan Oct 19 '16 at 7:17
  • there is no z-index variable in the calendar-setup.js, I checked to update the value there. – Akshay Vasu Oct 19 '16 at 12:16
  • I tried adding as you suggested but the box is still empty even after i selected a date it is not getting selected and filled up. – Akshay Vasu Oct 19 '16 at 12:24
  • problem is date doesn't select ? – lalit mohan Oct 19 '16 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.