Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Calendar select Delivery dates product › Reply To: Calendar select Delivery dates product
June 30, 2018 at 5:56 am
#9060
Keymaster
Hi,
Ok here is code you need to put inside your plugin following path:
js/ppom.inputs.js
near line number: 51 you will see following code: (line number can be change due to future changes)
if( input.past_dates === 'on' ) {
var date_today = new Date();
InputSelector.datepicker('option', 'minDate', date_today);
}
Replace above code with
if( input.past_dates === 'on' ) {
var date_today = new Date();
date_today.setDate(date_today.getDate() + 3);
InputSelector.datepicker('option', 'minDate', date_today);
}
That’s all.