Add meta to the invoice table
-
Firstly great plugin thank you!
I have a custom meta called _woo_uom_input associated with each item. I want to add this to the invoice table in its own column.
I tried to do it with:
function example_custom_order_fields2( $fields, $order ) { $new_fields = array(); if( get_post_meta( $order->get_ID(), '_woo_uom_input', true ) ) { $new_fields['_woo_uom_input'] = array( 'label' => 'By', 'value' => get_post_meta( $order->get_ID(), '_woo_uom_input', true ) ); } return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields2', 10, 2 );
However, it does not change anything on the invoice.
What is the best way to do this?
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add meta to the invoice table’ is closed to new replies.