- Posts: 100
- Thank you received: 1
Custom Fields -> Simple Date Picker -> Show Time
-- Joomla version -- : 3.8.1
-- PHP version -- : 7
Hello,
Is the "Example for an advanced DatePicker XML" possible with the Simple Date Picker custom field type, as shown here: docs.joomla.org/Calendar_form_field_type
You can select the time in the date popup.
Thanks
Please Log in or Create an account to join the conversation.
If you mean have a pop over when clicking on date input, the answer is yes.
For this you have to Switch the Display inline option to No, in the your Custom Fields configuration, then DATE PICKER OPTIONS part.
Hope this will fit your needs.
Regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
The "Simple Date Picker" was actually developed to only handle dates and not hours, so it will actually require some code customization.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Usually, people don't need to select a precise time of the day. For example, for delivery date selection, the day is usually all that's needed, and when time is also needed, it's usually a time range (for example from 9 am to 10 am, or from 10 am to 11 am).
And to do that, you can create a second custom field of the type "single date picker" and enter the different time ranges you want to be available to the user).
You could even have two fields, one for the hours and one for the minutes if that's really necessary.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So you mean that as the shop owner, you want to be able to enter the time of the delivery in the order to let the customer know about it, is that correct ?
In that case, why not have a second custom field for the time of the delivery as I explained before ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The single date picker type has been removed as Joomla's calendar API didn't allow for many settings and caused issues due to the different ways it worked between Joomla 2.5, 3.x and 4.x.
Instead, you can use the "advanced date picker" type, which has more options and no compatiblity issue.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Ok, but then you ask your customer to provide a precise time to get delivered ?
Usually, on the ecommerce websites I go to, it's always a time interval I have to select.
And it seems more logical to me. That way, I can expect the package to arrive in that time interval.
If I was to select a precise time, I would expect the package to arrive at that time and I suppose that won't happen in real life. And thus I wouldn't know when the package would arrive and I would have to wait at home several hours around that time to make sure I'm there.
Sure, it's a bit more work to setup for you, but it seems better as a user. Or am I missing something about your situation ?
Please Log in or Create an account to join the conversation.
Thank you for your reply
Please Log in or Create an account to join the conversation.