Hey @dblii,
Thanks for the compliment! Thanks for being a fan. ??
You can display the payment method on the packing slip with the following code snippet:
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_custom_text', 10, 2 );
function wpo_wcpdf_custom_text ($template_type, $order) {
// check the template type
if ( $template_type == 'packing-slip') {
$payment_method = $order->get_payment_method();
?>
<tr class="inserted-row">
<th class="inserted-payment-method-label">Payment Method: </th>
<td class="inserted-payment-method-value"> <?php echo ucfirst( $payment_method ) ?> </td>
</tr>
<?php //re-open the PHP tag (good practice)
}
}
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: https://docs.wpovernight.com/general/how-to-use-filters/