so i was able to get a custome field placed on the checkout page and it works fine.
i was also able to place the answer on to the order edit as well
Now only problem is i cant get the answer from customer to print on the PRINT INVOICE.
Is there a way to get the answer on the printed paper using Print Invoice button
here is the code i used
/**
* Add the field to the checkout
*/
add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' );
function my_custom_checkout_field( $checkout ) {
echo '<div id="my_custom_checkout_field"><h2>' . __('Delivery Day Preference') . '</h2>';
woocommerce_form_field( 'my_field_name', array(
'type' => 'text',
'class' => array('my-field-class form-row-wide'),
'label' => __('What delivery day works best for you?'),
'placeholder' => __('Wednesday/Thursday/Friday or any combination of these 3 days'),
), $checkout->get_value( 'my_field_name' ));
echo '</div>';