Options Appear on product page. I have Delivery Date. On Calendar i want to customer should not be able to select previous dates. can i control current date with cut off time.
Is there any solution other than extension. Version 4.1.0.0
Untested but you could try adding this to your catalog/view/theme/default/template/product/product.twig file. Before {{ footer }}
Double check that it has no datepicker function already, it will be somewhere at the end of the file. It used to be in the product file.
A quick google search gave another solution you could try
Double check that it has no datepicker function already, it will be somewhere at the end of the file. It used to be in the product file.
Code: Select all
<script>
$(document).ready(function () {
$('#datepicker').datepicker({
startDate: new Date()
});
});
</script>
Code: Select all
<script>
$(document).ready(function () {
$('#datetimepicker').datetimepicker({
minDate:new Date(),
disabledDates: [new Date()]
});
});
</script>
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Who is online
Users browsing this forum: No registered users and 3 guests