Hi. How can we help?

How move location of delivery date-picker ?

The plugin by default, show the datepicker field under order notes 


screen1.png
Is possible move this field in different area, for example to move it after billing details, is necessary add this custom code in the file functions.php of your theme:

if( !function_exists( 'ywcdd_change_delivery_field_position' ) ){

add_action( 'init', 'ywcdd_change_delivery_field_position' );
function ywcdd_change_delivery_field_position(){

if( function_exists( 'YITH_Delivery_Date_Shipping_Manager') && is_callable( array( YITH_Delivery_Date_Shipping_Manager(), 'print_delivery_from') )){
remove_action( 'woocommerce_checkout_shipping', array( YITH_Delivery_Date_Shipping_Manager(), 'print_delivery_from' ), 20 );
add_action( 'woocommerce_after_checkout_billing_form', array( YITH_Delivery_Date_Shipping_Manager(), 'print_delivery_from' ), 20 );

}

}
}



The result will be this :

screen2.png

Was this article helpful?
2 out of 3 found this helpful

Back to Help Center >