hungryfrank Posted December 2, 2019 Posted December 2, 2019 hi how can I use a different date picker. for localization of course. even it is for one language you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal
saraboromand Posted December 19, 2019 Posted December 19, 2019 Hi this is my question too I tried many ways but unfortunately did not get any results
♥ecartz Posted December 19, 2019 Posted December 19, 2019 @saraboromand or @hungryfrank In what way do you want to change the date picker? I.e. how do you want it to change? And which date picker? On what page? Does it show all the time or only when certain options are picked? You might post a screenshot of how it works now and possibly how you want it to work. Always back up before making changes.
♥JcMagpie Posted December 19, 2019 Posted December 19, 2019 1 hour ago, saraboromand said: I tried many ways but unfortunately did not get any results It's very simple, but depends on which version of osC you are using? If it's BS4 shop side then to make a simple change to styling simply add the new css to your user.css like this, here we change the background color to pink. .datepicker { background-color:pink!important; } If you need to change how it is formated then you need to add some js script either edit file or make a new hook. Again we simply use the datepicker class and change the date format to dd/mm/yyyy <script> $('.datepicker').datepicker({ format: 'dd/mm/yyyy' }); </script> It's the same principle for any css or js change. The admin side i belive is still using the js datepicker... <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js', '', 'SSL'); ?>"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script>
hungryfrank Posted December 19, 2019 Author Posted December 19, 2019 I wanted to change the Datepicker to show date time in different calendars. what I had to do was to change every instance to the new Datepicker you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal
hungryfrank Posted December 19, 2019 Author Posted December 19, 2019 I am not talking about changing the language I am talking about not Georgian calendar. where it is a different year. month first of the year and everything else you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal
♥JcMagpie Posted December 19, 2019 Posted December 19, 2019 You could use this, has most world calander option. jQuery Plugin for World Calendars - calendars
hungryfrank Posted December 20, 2019 Author Posted December 20, 2019 thanks I will start working on it you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal
hungryfrank Posted January 17, 2020 Author Posted January 17, 2020 very nice picker indeed. I figured the easiest way to proceed is to move all the time functions to language files. this way I can load the appropriate calendar for each language and show the correct date to user. keep the database entery dates as it is and translate the data that customer puts in to regular date data before inserting in the db. WORKING ON IT I think if I could geolocate the user and set the calendar based on that in the front it would be great. but I have. no idea how to do that YET you can cut up to 4 pages of your checkout by using my three add_ons login create account in one page Express checkout login pop up modal
Recommended Posts
Archived
This topic is now archived and is closed to further replies.