After the:
line on the TWIG file, ensure to have the:
portion added after the: placeholder="x". Then, at the bottom of the TWIG file, add:
(normally above the {{ footer }} variable). This should do it.
Code: Select all
<div class="input-group date">
Code: Select all
data-date-format="YYYY-MM-DD" data-locale="{{ datepicker }}"
Code: Select all
<script type="text/javascript"><!--
$('.date').datetimepicker({
language: '{{ datepicker }}',
pickTime: false
});
$('.time').datetimepicker({
language: '{{ datepicker }}',
pickDate: false
});
$('.datetime').datetimepicker({
language: '{{ datepicker }}',
pickDate: true,
pickTime: true
});
//--></script>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
hi,
i have tried this solution to disable the previous date from the datetime picker in the delivery option for the product, but it is not working. can you plz help me i am new to OC 3
i have modified this file:
catalog/view/theme/default/template/product/product.twig
i have tried this solution to disable the previous date from the datetime picker in the delivery option for the product, but it is not working. can you plz help me i am new to OC 3
i have modified this file:
catalog/view/theme/default/template/product/product.twig
Has nothing todo with OpenCart, you should read this here:
https://eonasdan.github.io/bootstrap-datetimepicker/
https://eonasdan.github.io/bootstrap-datetimepicker/
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: Adminas99999 and 171 guests