Skip to content

Instantly share code, notes, and snippets.

@ashokrane
Created February 22, 2019 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashokrane/d5611f358bcbc23ea297fa29975f9ad9 to your computer and use it in GitHub Desktop.
Save ashokrane/d5611f358bcbc23ea297fa29975f9ad9 to your computer and use it in GitHub Desktop.
Add delivery date field on WooCommerce checkout page
<?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