Support » Plugin: Woocommerce Delivery Date Premium » Show calendar open on page load

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rohil

    (@rohilmistry)

    Find jQuery("#delivery_date").width("150px"); in woocommerce-delivery-date.php around 185.

    And replace below line of it from :

    jQuery("#delivery_date").datepicker({dateFormat: "'.$js_date_format.'", minDate:'.$dates_to_deliver.',changeMonth: true, changeYear: true, yearRange: "'.date('Y').':'.(date('Y')+4).'"});

    to

    jQuery("#dd__checkout_field").datepicker({dateFormat: "'.$js_date_format.'", minDate:'.$dates_to_deliver.',changeMonth: true, changeYear: true, yearRange: "'.date('Y').':'.(date('Y')+4).'", onSelect: function(selected,evnt) {
    						updateDeliveryDate(selected);
    					} });
    					function updateDeliveryDate(delivery_date){
    						jQuery("#delivery_date").val(delivery_date);
    					}
    Thread Starter GEPS

    (@geps)

    Thank you for your reply, unfortunately I cannot confirm if this works or not as my client decided to move in a different direction making this no longer required.

    But thank you.

    Plugin Author dreamfox

    (@dreamfox)

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show calendar open on page load’ is closed to new replies.