I am using WooCommerce Print Invoices & Packing Lists Plugin. I want to add some custom field values in the order invoice. But the fields are not loading properly.
add_action('wc_pip_after_body', 'dvsi_invoice_footer');
function dvsi_invoice_footer ($order_id) {
$order = new WC_Order( $order_id );
echo '<h4>'.__('Name: ').'</strong> ' . $order->billing_first_name . '</h4>';
echo '<h4>'.__('Note: ').'</strong> ' . get_post_meta( $order->id, 'public_details_new', true ) . '</h4>';
?>
<h4 style="margin-bottom:0px;">Important:</h4>
<p>If you have purchased Domain, Hosting, SSL certificate or any other service that has an Expiry date then please contact us 10 days before prior to the Expiry date so we can renew or repurchase it on time.<p>
<h4 style="margin-bottom:0px;">Contact Details</h4>
<p><strong>Office: </strong>AL-Hafeez Heights Gulberg III, Lahore<p>
<p><strong>Mobile: </strong>0323-4152099<p>
<p><strong>Email: </strong>[email protected]<p>
<?php
}
The output didnot load my custom field values and display blank. It only load html values.

Here is the link of the available plugin hooks: https://docs.woocommerce.com/document/woocommerce-print-invoices-packing-lists-developer-reference/#section-1
Any help please?