Make checkout fields required in Woocommerce checkout

What you can do if you don’t find the guilty as explained on my comment is to use the following (using here a highest hook priority if some other code is already using those hooks): add_filter( ‘woocommerce_default_address_fields’, ‘customising_checkout_fields’, 1000, 1 ); function customising_checkout_fields( $address_fields ) { $address_fields[‘first_name’][‘required’] = true; $address_fields[‘last_name’][‘required’] = true; $address_fields[‘company’][‘required’] = true; … Read more

Add a new custom field to WooCommerce checkout and display on admin order pages and email notifications

You’re using delivery_date, city_custom & Citymixed up, this gives you different values, so that is your problem // Display a custom checkout select field after Billing form add_action( ‘woocommerce_after_checkout_billing_form’, ‘my_custom_checkout_field’, 10, 1 ); function my_custom_checkout_field( $checkout ) { echo ‘<div id=”my_custom_checkout_field”> ‘ . __(‘City’) . ”; woocommerce_form_field( ‘city_custom’, array( ‘type’ => ‘select’, ‘options’ => array( … Read more