Created
February 22, 2019 16:14
-
-
Save ashokrane/d5611f358bcbc23ea297fa29975f9ad9 to your computer and use it in GitHub Desktop.
Add delivery date field on WooCommerce checkout page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_after_checkout_billing_form', 'display_extra_fields_after_billing_address' , 10, 1 ); | |
function display_extra_fields_after_billing_address () { | |
_e( "Delivery Date: ", "add_extra_fields"); | |
?> | |
<br> | |
<input type="text" name="add_delivery_date" class="add_delivery_date" placeholder="Delivery Date"> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment