Comments karim_gabriels started the conversationApril 9, 2018 at 11:24pmHello,I installed the "Woo Checkout Field Editor Pro Premium" from THemeHigh.When i try to add a datepicker, it is not shown correctly. The extra options like the days customers are not able to pick are not parsed.It looks like the theme is overriding the datepicker form.I tried removing this from the main.js://Datepicker - http://api.jqueryui.com/datepicker/ // var $vu_datepicker = $('.vu_datepicker'); // $vu_datepicker.each(function() { // var $this = $(this), // options = $this.data('options') || { // defaultViewDate: 'today', // format: 'dd/mm/yy' // }; // if ( $('.vu_dp-options[data-element="'+ $this.attr('id') +'"]').length ) { // try { // options = JSON.parse(JSON.stringify($('.vu_dp-options[data-element="'+ $this.attr('id') +'"]').data('options'))); // } catch(err) {} // } // try { // $this.datepicker(options); // } catch(err) {} // }); // Add custom wrap from date & time picker //$vu_datepicker.datepicker('widget').wrap('<div class="vu_datepicker-wrap"/>');But it doesn't help.Please advise.Regards,Karim GabrielsOwner Me Glusta 228Milingona repliedApril 12, 2018 at 12:24pmHello Karim,Please try to comment line 47-48 of actions.php file located at wp-content/themes/bakery/includes. That will stop bootstrap-datepicker script and style from being loaded.Kind regards, Milingona Support Follow on Envato Facebook Twitter Sign in to reply ...
Hello,
I installed the "Woo Checkout Field Editor Pro Premium" from THemeHigh.
When i try to add a datepicker, it is not shown correctly. The extra options like the days customers are not able to pick are not parsed.
It looks like the theme is overriding the datepicker form.
I tried removing this from the main.js:
//Datepicker - http://api.jqueryui.com/datepicker/
// var $vu_datepicker = $('.vu_datepicker');
// $vu_datepicker.each(function() {
// var $this = $(this),
// options = $this.data('options') || {
// defaultViewDate: 'today',
// format: 'dd/mm/yy'
// };
// if ( $('.vu_dp-options[data-element="'+ $this.attr('id') +'"]').length ) {
// try {
// options = JSON.parse(JSON.stringify($('.vu_dp-options[data-element="'+ $this.attr('id') +'"]').data('options')));
// } catch(err) {}
// }
// try {
// $this.datepicker(options);
// } catch(err) {}
// });
// Add custom wrap from date & time picker
//$vu_datepicker.datepicker('widget').wrap('<div class="vu_datepicker-wrap"/>');
But it doesn't help.
Please advise.
Regards,
Karim Gabriels
Owner Me Glusta
Hello Karim,
Please try to comment line 47-48 of actions.php file located at wp-content/themes/bakery/includes. That will stop bootstrap-datepicker script and style from being loaded.
Kind regards,
Milingona Support
Follow on Envato Facebook Twitter