In open cart there is an option to add field of type 'date'.
However when the calendar pops up I'm able to see dates in the past.
I want that the calendar will show only dates starting from the current day.
I therefore added the following parameter appears in bold but still calendar behaves the same.
$('.datetime').datetimepicker({
minDate: 0,
dateFormat: 'yy-mm-dd',
timeFormat: 'h:m'
How can i modify this script ?
However when the calendar pops up I'm able to see dates in the past.
I want that the calendar will show only dates starting from the current day.
I therefore added the following parameter appears in bold but still calendar behaves the same.
$('.datetime').datetimepicker({
minDate: 0,
dateFormat: 'yy-mm-dd',
timeFormat: 'h:m'
How can i modify this script ?
change the $('.date').datepicker({dateFormat: 'yy-mm-dd'}); instead of datetime.
TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP
which page are you editing?
what version of opencart are you using?
are there errors when you debug?
are you using cache, empty it....
I tested it with 1.5.2.1 and it works fine
what version of opencart are you using?
are there errors when you debug?
are you using cache, empty it....
I tested it with 1.5.2.1 and it works fine
TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP
wow, that is strange, it works on my page...
are you using the right template product.tpl?
are you using the right template product.tpl?
TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP
For option "date" worked percfectly for me!
Just added:
$('.date').datepicker({
minDate: 0,
dateFormat: 'dd-mm-yy',
});
On product.tpl on the current refered javascript on body section.
- i using brazilian date format (d-m-y) as you can see.
Thanks a lot!!
Just added:
$('.date').datepicker({
minDate: 0,
dateFormat: 'dd-mm-yy',
});
On product.tpl on the current refered javascript on body section.
- i using brazilian date format (d-m-y) as you can see.
Thanks a lot!!
Who is online
Users browsing this forum: No registered users and 2 guests