Thread Starter
dsirka
(@dsirka)
Thank you. Somehow I worked it out.
If you want to take a look at this code and see if I should make any other change?
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_delivery_date', 10, 2 );
function wpo_wcpdf_delivery_date ($template_type, $order) {
$document = wcpdf_get_document( $template_type, $order );
?>
<tr class="purchase-order-number">
<th>PO # :</th>
<td><?php $document->custom_field('_po_number'); ?></td>
</tr>
<?php
}
Thank you for your help
-
This reply was modified 8 years, 2 months ago by dsirka.
-
This reply was modified 8 years, 2 months ago by dsirka.
Thread Starter
dsirka
(@dsirka)
I’m using Woocommerce extension at checkout. WooCommerce Purchase Order Gateway
Could you help me figure out the hook name and any other code I need to replace to have PO number show on the invoice and packaging slip?