Thread Starter
qtfish
(@qtfish)
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>';
Hi @qtfish,
Can you tell me the name of the plugin which you are using for the invoice?
It will be easy to answer.
Thank You
Thread Starter
qtfish
(@qtfish)
Print Invoices & Delivery Notes for WooCommerce Orders.
Version 4.6.4 | By Tyche Softwares
Hi @qtfish,
You can raise thread to the plugin forum they will help out.
Here is the link to the plugin support froum.
https://wordpress.org/support/plugin/woocommerce-delivery-notes/
Thank You