View Single Post
  #8  
Old 04-24-2018, 04:09 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: DatePicker input on my Form Field

@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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote