I think I found it, here is what I did:
<div class="payment-method">
<?php do_action( 'wpo_wcpdf_before_customer_notes', $this->type, $this->order ); ?>
<?php if ( $this->get_payment_method() ) : ?>
<h3><?php _e( 'Метод на плащане', 'woocommerce-pdf-invoices-packing-slips' ); ?></h3>
<?php $this->payment_method(); ?>
<?php endif; ?>
<?php do_action( 'wpo_wcpdf_before_customer_notes', $this->type, $this->order ); ?>
</div>
Is the code correct?
Plugin Contributor
Ewout
(@pomegranate)
Yes, that should work. It’s the same code that is used in the Invoice for printing the payment method: https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v2.2.5/templates/Simple/invoice.php#L73-L76
Let us know if you run into any issues with this!
Yup works, but I would like to put it after the totals, how is the proper way doing that?
Plugin Contributor
Ewout
(@pomegranate)