• 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!

    • This topic was modified 4 years, 7 months ago by henrymcleanuk.
Viewing 1 replies (of 1 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @henrymcleanuk,

    Sorry for the delay in response.

    I will pass your query to the developer and I will get back to you with an update once I hear from them.

    Regards,
    Kenil Shah

Viewing 1 replies (of 1 total)
  • The topic ‘Add meta to the invoice table’ is closed to new replies.