Title: extra fields
Last modified: May 25, 2019

---

# extra fields

 *  Resolved [konnox](https://wordpress.org/support/users/konnox/)
 * (@konnox)
 * [7 years ago](https://wordpress.org/support/topic/extra-fields-14/)
 * Hello, I have a question about the information that appears, I need to appear
   on the printed invoice two additional fields made by custom fields checkout, 
   is it possible?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [komal-maru](https://wordpress.org/support/users/komal-maru/)
 * (@komal-maru)
 * [7 years ago](https://wordpress.org/support/topic/extra-fields-14/#post-11588202)
 * Hi [@konnox](https://wordpress.org/support/users/konnox/),
 * Yes, it is possible to add the custom fields values to the Print Invoice. We 
   do provide hooks which can be used to add the value of the custom field.
 * Please use the ‘wcdn_order_info_fields’ hook in the functions.php file of the
   theme which is currently active on your site.
 * Let me know if you have any further queries.
 * Regards,
    Komal Maru
 *  Thread Starter [konnox](https://wordpress.org/support/users/konnox/)
 * (@konnox)
 * [7 years ago](https://wordpress.org/support/topic/extra-fields-14/#post-11612634)
 * Could you please give me the hook syntax to add extra fields?
 * Iam Noob 🙁
 *  [komal-maru](https://wordpress.org/support/users/komal-maru/)
 * (@komal-maru)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/extra-fields-14/#post-11662868)
 * Hi [@konnox](https://wordpress.org/support/users/konnox/),
 * Please find the below sample example which you can use to print the custom extra
   field on the Print Invoice.
 *     ```
       add_filter( 'wcdn_order_info_fields', 'wcdn_order_info_fields_function', 10, 2 );
       public static function wcdn_order_info_fields_function( $fields, $order ) {
       	$new_fields = array();
   
               $locations_label = "Your Custom label";
               $output = "Your custom data which you want to output";
       	$new_fields[ $locations_label ] = array(
                       'label' => $locations_label,
                       'value' => $output 
               );
   
       	return array_merge( $fields, $new_fields );	
       }
       ```
   
 * I hope the provided sample example helps you to add the custom fields to the 
   Invoices template. Let me know if you need any further assistance.
 * Regards,
    Komal Maru

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘extra fields’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [komal-maru](https://wordpress.org/support/users/komal-maru/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/extra-fields-14/#post-11662868)
 * Status: resolved