WooCommerce Print Invoice & Delivery Note
print custom field to invoice (2 posts)

  1. henry74
    Posted 9 months ago #


    I have used this code in functions.php to add a custom field in the billing address:

    add_action('woocommerce_after_checkout_billing_form', 'my_custom_checkout_field');
    <em>function my_custom_checkout_field( $checkout ) {
    echo '<div id="my_custom_checkout_field"><h3>'.__('NIF/CIF').'</h3>';
    woocommerce_form_field( 'NIF', array(
    'type' => 'text',
    'class' => array('my-field-class form-row-wide'),
    'label' => __('NIF/CIF'),
    'placeholder' => __('Introduzca su NIF/CIF'),
    'required'  => true,
    ), $checkout->get_value( 'NIF' ));
    echo '</div>';

    I need to know how to print this code in the invoice. I have tried with a couple of post I found but nothing worked for me.


  2. Mayda
    Posted 8 months ago #

    Also would like to know how to print additional fields to the invoice such as the customer note and other custom fields. We are using as order info printout for the Admin.


You must log in to post.

About this Plugin

  • WooCommerce Print Invoice & Delivery Note
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic