Add Custom Checkout fields to Woocommerce

Here are a couple sample fields you can add to your theme’s functions file to create some Custom Fields on checkout for Woocommerce.

First, add the fields to checkout. There is also a conditional Birthday field…

For the Birthday, check to see if it’s in the cart…

Process the checkout…

Save those fields!

Finally, display those fields on the order backend edit page…

Bonus: Add those fields that go out in the email to the store owner…

In “admin-new-order.php” in the Woocommerce email template file, and after the do_action(‘woocommerce_email_customer_details’)

 

Leave a Reply

Your email address will not be published. Required fields are marked *

− 1 = 7