How could I add date time picker option in Shopify -> Store -> Customize -> Section Setting
.
I want to add sliders to be displayed on scheduled basis. So created option there to enter the date time field. Now I wanted the datepicker should be visible when I click on that field, as usually it is done on the text boxes.
I tried to add a jQuery datepicker
on the section. but it always shows as datepicker is undefined.
4
Answers
There is no datepicker field in Shopify.
You will need to use a standard text field and use it as a date base.
Please refer to the docs for the available fields:
Basic Input Settings
Specialized input settings
Added next fields to setting for same task. Very pity but liquid can’t insert variable to schema((
just wanted to give some update if someone is searching a Date Picker for the Product or Cart Page on Shopify.
There are a lot of apps ready in the Appstore like:
https://apps.shopify.com/date-picker
For me and the Team this was very easy to use and has saved us a lot of developer work.
There is no date picker in Shopify but you can get the date from settings like this way: ( place the code in you schema settings )
And then just add or assign the date with a filter and I think you will get exactly what you wanted without the visual date picker like jQuery date picker
{{ section.settings.date_picker | date: "%m-%d-%Y" }}
Hope, this will help you. 🙂