View Single Post
  #9  
Old 04-24-2018, 04:59 AM
 
Soptareanu @Alex Soptareanu @Alex is offline
 

Advanced Member
  
Join Date: Apr 2018
Posts: 39
 

Default Re: DatePicker input on my Form Field

Quote:
Originally Posted by tony_sologubov
@Alex,

Yes, datepicker widget is not designed to work in customer area, only in admin back-end.
If you want to make it working in customer zone, you need to create your own version of this class.

Basic plan should be as follows:
- Extend\XLite\View\DatePicker class in your module;
- Define your own versions of getJSFiles(), getCSSFiles() and getFieldTemplate() methods, so that they would use files from customer area;
- Use your class in your ItemsList.

Ok. I try to create my own class.
__________________
Soptareanu Alex
Reply With Quote